mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
change: update logs
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package hrp
|
package hrp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/pkg/errors"
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/httprunner/httprunner/hrp/internal/builtin"
|
"github.com/httprunner/httprunner/hrp/internal/builtin"
|
||||||
@@ -24,7 +23,7 @@ func convert2PyTestScripts(paths ...string) error {
|
|||||||
|
|
||||||
python3, err := builtin.EnsurePython3Venv("httprunner")
|
python3, err := builtin.EnsurePython3Venv("httprunner")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "ensure python venv failed")
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
args := append([]string{"-m", "httprunner", "make"}, paths...)
|
args := append([]string{"-m", "httprunner", "make"}, paths...)
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package pytest
|
package pytest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/pkg/errors"
|
|
||||||
|
|
||||||
"github.com/httprunner/httprunner/hrp/internal/builtin"
|
"github.com/httprunner/httprunner/hrp/internal/builtin"
|
||||||
"github.com/httprunner/httprunner/hrp/internal/sdk"
|
"github.com/httprunner/httprunner/hrp/internal/sdk"
|
||||||
)
|
)
|
||||||
@@ -15,7 +13,7 @@ func RunPytest(args []string) error {
|
|||||||
|
|
||||||
python3, err := builtin.EnsurePython3Venv("httprunner")
|
python3, err := builtin.EnsurePython3Venv("httprunner")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "ensure python venv failed")
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
args = append([]string{"-m", "httprunner", "run"}, args...)
|
args = append([]string{"-m", "httprunner", "run"}, args...)
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ func createPythonPlugin(projectName string) error {
|
|||||||
|
|
||||||
_, err = builtin.EnsurePython3Venv(fmt.Sprintf("funppy==%s", shared.Version))
|
_, err = builtin.EnsurePython3Venv(fmt.Sprintf("funppy==%s", shared.Version))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "ensure python venv failed")
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user