1
0
mirror of https://github.com/golang/go synced 2024-10-02 10:18:33 -06: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:
Ian Lance Taylor 2017-12-11 11:28:50 -08:00
parent 43123903ca
commit 63e29ad1f7
2 changed files with 3 additions and 1 deletions

View File

@ -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
View File

@ -0,0 +1,2 @@
#!/bin/sh
exit 0