We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TEST_TMPDIR
TMPDIR
1 parent bcbc7e9 commit 1c41dc5Copy full SHA for 1c41dc5
go/tools/builders/generate_test_main.go
@@ -178,6 +178,13 @@ func main() {
178
// out of the Chdir behavior.
179
_ = os.Unsetenv("GO_TEST_RUN_FROM_BAZEL")
180
181
+ // NOTE(ricky): Bazel sets the TEST_TMPDIR env variable, but Cockroach
182
+ // tests generally consult TMPDIR.
183
+ err := os.Setenv("TMPDIR", os.Getenv("TEST_TMPDIR"))
184
+ if err != nil {
185
+ panic(err)
186
+ }
187
+
188
if bzltestutil.ShouldWrap() {
189
err := bzltestutil.Wrap("{{.Pkgname}}")
190
exitCode := 0
0 commit comments