From daacf269802eaa856705063159b55b5e752e7058 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Tue, 7 Jan 2020 16:25:34 -0500 Subject: [PATCH] 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 --- src/cmd/go/testdata/script/test_main_twice.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0