Fix running tests under goland
This commit is contained in:
parent
366629e7fe
commit
dc2f940fc0
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ func copyFiles(baseDir string, relPaths []string, dst string) {
|
||||||
// Run all test in directory with race detector.
|
// Run all test in directory with race detector.
|
||||||
func runTests(testDir string) {
|
func runTests(testDir string) {
|
||||||
cmd := exec.Command("go", "test", "-v", "-mod", "readonly", "-tags", "private", "-race", "./...")
|
cmd := exec.Command("go", "test", "-v", "-mod", "readonly", "-tags", "private", "-race", "./...")
|
||||||
|
cmd.Env = append(os.Environ(), "GOFLAGS=")
|
||||||
cmd.Dir = testDir
|
cmd.Dir = testDir
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|
Loading…
Reference in a new issue