change: update logs

This commit is contained in:
debugtalk
2022-04-22 20:53:14 +08:00
parent d09bcbe40c
commit 9afe10f816
3 changed files with 3 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
package hrp
import (
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/hrp/internal/builtin"
@@ -24,7 +23,7 @@ func convert2PyTestScripts(paths ...string) error {
python3, err := builtin.EnsurePython3Venv("httprunner")
if err != nil {
return errors.Wrap(err, "ensure python venv failed")
return err
}
args := append([]string{"-m", "httprunner", "make"}, paths...)

View File

@@ -1,8 +1,6 @@
package pytest
import (
"github.com/pkg/errors"
"github.com/httprunner/httprunner/hrp/internal/builtin"
"github.com/httprunner/httprunner/hrp/internal/sdk"
)
@@ -15,7 +13,7 @@ func RunPytest(args []string) error {
python3, err := builtin.EnsurePython3Venv("httprunner")
if err != nil {
return errors.Wrap(err, "ensure python venv failed")
return err
}
args = append([]string{"-m", "httprunner", "run"}, args...)

View File

@@ -180,7 +180,7 @@ func createPythonPlugin(projectName string) error {
_, err = builtin.EnsurePython3Venv(fmt.Sprintf("funppy==%s", shared.Version))
if err != nil {
return errors.Wrap(err, "ensure python venv failed")
return err
}
return nil