aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yue Gan <yueg@google.com>2016-10-06 11:56:24 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-10-07 08:03:53 +0000
commit0b66bb505b30716e17d9dc838351b14108c21751 (patch)
treedd7e744a5ce260b46719d9a8395774eead7c2a0b
parentdf5993aa70b89c5a4ef329bf256df52e04d55f47 (diff)
Fix test when run streamed and not sandboxed. (mkdir: File exists)
-- MOS_MIGRATED_REVID=135345593
-rwxr-xr-xsrc/test/shell/bazel/local_repository_test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/shell/bazel/local_repository_test.sh b/src/test/shell/bazel/local_repository_test.sh
index f01af32191..b14ba4fd4d 100755
--- a/src/test/shell/bazel/local_repository_test.sh
+++ b/src/test/shell/bazel/local_repository_test.sh
@@ -208,6 +208,7 @@ function do_new_local_repository_test() {
outside_dir=$TEST_TMPDIR/outside
mkdir -p $outside_dir
package_dir=$project_dir/carnivore
+ rm -rf $package_dir
mkdir $package_dir
# Be tricky with absolute symlinks to make sure that Bazel still acts as
# though external repositories are immutable.