From: Michael Matloob Date: Tue, 7 Jan 2020 21:25:34 +0000 (-0500) Subject: cmd/go: fix TestScript/test_main_twice X-Git-Tag: go1.14rc1~147 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=daacf269802eaa856705063159b55b5e752e7058;p=gostls13.git cmd/go: fix TestScript/test_main_twice 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 Reviewed-by: Bryan C. Mills TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/testdata/script/test_main_twice.txt b/src/cmd/go/testdata/script/test_main_twice.txt index bc48140694..1e68dabec0 100644 --- a/src/cmd/go/testdata/script/test_main_twice.txt +++ b/src/cmd/go/testdata/script/test_main_twice.txt @@ -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