Skip to content

Commit

Permalink
Copy TEST_TMPDIR env variable to TMPDIR before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rickystewart committed Oct 9, 2024
1 parent 74dae57 commit 6b9e1e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions go/tools/builders/generate_test_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ func testsInShard() []testing.InternalTest {
}
func main() {
// NOTE(ricky): Bazel sets the TEST_TMPDIR env variable, but Cockroach
// tests generally consult TMPDIR.
err := os.Setenv("TMPDIR", os.Getenv("TEST_TMPDIR"))
if err != nil {
panic(err)
}
if bzltestutil.ShouldWrap() {
err := bzltestutil.Wrap("{{.Pkgname}}")
exitCode := 0
Expand Down

0 comments on commit 6b9e1e5

Please sign in to comment.