Skip to content

Commit 7c4f12c

Browse files
authored
remove the unnecessary output (#12)
1 parent cbefc17 commit 7c4f12c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ build:
44
go build -o bin/atest main.go
55

66
copy: build
7-
cp bin/atest /usr/local/bin/
7+
sudo cp bin/atest /usr/local/bin/
88
test:
99
go test ./...

cmd/run.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func (o *runOption) runE(cmd *cobra.Command, args []string) (err error) {
4141
if files, err = filepath.Glob(o.pattern); err == nil {
4242
for i := range files {
4343
item := files[i]
44-
fmt.Println(item, "===", o.pattern, args)
4544
if err = runSuite(item, ctx); err != nil {
4645
return
4746
}
@@ -60,7 +59,7 @@ func runSuite(suite string, ctx map[string]interface{}) (err error) {
6059
for _, testCase := range testSuite.Items {
6160
// reuse the API prefix
6261
if strings.HasPrefix(testCase.Request.API, "/") {
63-
testCase.Request.API = fmt.Sprintf("%s/%s", testSuite.API, testCase.Request.API)
62+
testCase.Request.API = fmt.Sprintf("%s%s", testSuite.API, testCase.Request.API)
6463
}
6564

6665
setRelativeDir(suite, &testCase)

0 commit comments

Comments
 (0)