Skip to content

Commit e0bc466

Browse files
committed
fix(tests_suite_test.go): print command that's about to be executed
1 parent 251a650 commit e0bc466

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

_tests/tests_suite_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package _tests_test
33
import (
44
"bytes"
55
"fmt"
6+
"io"
67
"math/rand"
78
"os"
89
"os/exec"
@@ -120,7 +121,9 @@ func execute(cmdLine string, args ...interface{}) (string, error) {
120121
}
121122

122123
func start(cmdLine string, args ...interface{}) (*gexec.Session, error) {
123-
cmd := exec.Command("/bin/sh", "-c", fmt.Sprintf(cmdLine, args...))
124+
cmdStr := fmt.Sprintf(cmdLine, args...)
125+
fmt.Println(cmdStr)
126+
cmd := exec.Command("/bin/sh", "-c", cmdStr)
124127
return gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
125128
}
126129

0 commit comments

Comments
 (0)