mirror of
https://github.com/golang/go
synced 2024-11-19 17:04:41 -07:00
cmd/go: don't pass -test.testlogfile on NaCl
It causes every test to fail as the log file is on the local file system, not the NaCl file system. Updates #22593 Change-Id: Iee3d8307317bd792c9c701baa962ebbbfa34c147 Reviewed-on: https://go-review.googlesource.com/83256 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
43123903ca
commit
63e29ad1f7
@ -1266,7 +1266,7 @@ func (c *runCache) builderRunTest(b *work.Builder, a *work.Action) error {
|
||||
}
|
||||
|
||||
testlogArg := []string{}
|
||||
if !c.disableCache {
|
||||
if !c.disableCache && cfg.Goos != "nacl" {
|
||||
testlogArg = []string{"-test.testlogfile=" + a.Objdir + "testlog.txt"}
|
||||
}
|
||||
args := str.StringList(work.FindExecCmd(), a.Deps[0].Target, testlogArg, testArgs)
|
||||
|
2
src/cmd/go/testdata/src/testcache/script.sh
vendored
Executable file
2
src/cmd/go/testdata/src/testcache/script.sh
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user