remove the unnecessary output (#12)

This commit is contained in:
Rick 2023-03-12 15:08:28 +08:00 committed by GitHub
parent cbefc17646
commit 7c4f12c79e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -4,6 +4,6 @@ build:
go build -o bin/atest main.go
copy: build
cp bin/atest /usr/local/bin/
sudo cp bin/atest /usr/local/bin/
test:
go test ./...

View File

@ -41,7 +41,6 @@ func (o *runOption) runE(cmd *cobra.Command, args []string) (err error) {
if files, err = filepath.Glob(o.pattern); err == nil {
for i := range files {
item := files[i]
fmt.Println(item, "===", o.pattern, args)
if err = runSuite(item, ctx); err != nil {
return
}
@ -60,7 +59,7 @@ func runSuite(suite string, ctx map[string]interface{}) (err error) {
for _, testCase := range testSuite.Items {
// reuse the API prefix
if strings.HasPrefix(testCase.Request.API, "/") {
testCase.Request.API = fmt.Sprintf("%s/%s", testSuite.API, testCase.Request.API)
testCase.Request.API = fmt.Sprintf("%s%s", testSuite.API, testCase.Request.API)
}
setRelativeDir(suite, &testCase)