diff options
author | 2017-12-13 08:00:37 -0800 | |
---|---|---|
committer | 2017-12-13 08:02:34 -0800 | |
commit | 12beae1f8beabd1d70d17d3a7d1fc4a3d3b9c93f (patch) | |
tree | 6901b347602e91a281eb7ea49d15ddd35a5e333c /src/test/shell | |
parent | 0cb19440ed18754875f3582bb6a0780c5aa0751a (diff) |
Use java.nio.file.Files.createTempDirectory() to create temporary directory in LocalSpawnRunner, to avoid a race condition.
Aside:
The old, real temporary directory paths looked like this:
TMPDIR=/.../tmp15e_5dd5a8e8347813f5
The new, real temporary directory paths now look like this:
TMPDIR=/.../local-spawn-runner.3217503035718074040
RELNOTES: None.
PiperOrigin-RevId: 178903361
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/bazel/bazel_rules_test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/shell/bazel/bazel_rules_test.sh b/src/test/shell/bazel/bazel_rules_test.sh index 2d8b2f387f..db897b1560 100755 --- a/src/test/shell/bazel/bazel_rules_test.sh +++ b/src/test/shell/bazel/bazel_rules_test.sh @@ -251,7 +251,7 @@ EOF || fail "Failed to build //pkg:test" assert_contains "PATH=$PATH_TO_BAZEL_WRAPPER:/bin:/usr/bin:/random/path" \ bazel-genfiles/pkg/test.out - assert_contains "TMPDIR=.*execroot.*tmp[0-9a-fA-F]\+_[0-9a-fA-F]\+.*work$" \ + assert_contains "TMPDIR=.*execroot.*local-spawn-runner.*work$" \ bazel-genfiles/pkg/test.out assert_not_contains "TMPDIR=.*newfancytmpdir" \ bazel-genfiles/pkg/test.out |