aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2016-09-26 16:21:22 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-09-26 17:49:03 +0000
commita7827c8d1b4f6d3adc0c247adab34310ae3cc566 (patch)
tree63d8523ed52ed4f4349905d1c436196f5e7d2840 /src/test
parenta27949e27d4335216c28e77c41d078e338b5d4fb (diff)
Fix an issue where a "build" command might hang after it finished, because sandbox directories could not be cleaned up.
-- MOS_MIGRATED_REVID=134286101
Diffstat (limited to 'src/test')
-rwxr-xr-xsrc/test/shell/bazel/bazel_sandboxing_test.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/shell/bazel/bazel_sandboxing_test.sh b/src/test/shell/bazel/bazel_sandboxing_test.sh
index 38b918979b..17e3d4fed2 100755
--- a/src/test/shell/bazel/bazel_sandboxing_test.sh
+++ b/src/test/shell/bazel/bazel_sandboxing_test.sh
@@ -222,8 +222,7 @@ function test_sandbox_cleanup() {
bazel build examples/genrule:tools_work &> $TEST_log \
|| fail "Hermetic genrule failed: examples/genrule:tools_work"
bazel shutdown &> $TEST_log || fail "bazel shutdown failed"
- ls -la "$(bazel info output_base)/bazel-sandbox"
- if [[ "$(ls -A "$(bazel info execution_root)"/bazel-sandbox)" ]]; then
+ if [[ "$(ls -la "$(bazel info output_base)/bazel-sandbox")" ]]; then
fail "Build left files around afterwards"
fi
}