]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix TestScript/test_main_twice
authorMichael Matloob <matloob@golang.org>
Tue, 7 Jan 2020 21:25:34 +0000 (16:25 -0500)
committerMichael Matloob <matloob@golang.org>
Tue, 7 Jan 2020 21:42:59 +0000 (21:42 +0000)
The TMPDIR environment variable isn't always available. Use $WORK/tmp
instead, to fix this test on Windows.

Change-Id: I521c470430c6eea4d1f2fc7db749d38178a03a13
Reviewed-on: https://go-review.googlesource.com/c/go/+/213680
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/testdata/script/test_main_twice.txt

index bc481406945ba7103cebb33cd6a74b07e66cb629..1e68dabec0c4b4f0629ea7fae698a2f4d7bb8f44 100644 (file)
@@ -1,6 +1,6 @@
 [short] skip
 
-env GOCACHE=$TMPDIR
+env GOCACHE=$WORK/tmp
 go test -v multimain
 stdout -count=2 notwithstanding # check tests ran twice