mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 07:21:23 +08:00
refactor: move exec to myexec
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
|
||||
"github.com/httprunner/httprunner/v4/hrp"
|
||||
"github.com/httprunner/httprunner/v4/hrp/internal/builtin"
|
||||
"github.com/httprunner/httprunner/v4/hrp/internal/myexec"
|
||||
"github.com/httprunner/httprunner/v4/hrp/internal/sdk"
|
||||
)
|
||||
|
||||
@@ -212,7 +213,7 @@ func (c *TCaseConverter) ToPyTest() (string, error) {
|
||||
}
|
||||
|
||||
args := append([]string{"make"}, jsonPath)
|
||||
err = builtin.ExecPython3Command("httprunner", args...)
|
||||
err = myexec.ExecPython3Command("httprunner", args...)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"github.com/httprunner/httprunner/v4/hrp"
|
||||
"github.com/httprunner/httprunner/v4/hrp/internal/builtin"
|
||||
"github.com/httprunner/httprunner/v4/hrp/internal/myexec"
|
||||
)
|
||||
|
||||
func convert2GoTestScripts(paths ...string) error {
|
||||
@@ -48,7 +48,7 @@ func convert2GoTestScripts(paths ...string) error {
|
||||
}
|
||||
|
||||
// format pytest scripts with black
|
||||
return builtin.ExecPython3Command("black", pytestPaths...)
|
||||
return myexec.ExecPython3Command("black", pytestPaths...)
|
||||
}
|
||||
|
||||
//go:embed testcase.tmpl
|
||||
|
||||
Reference in New Issue
Block a user