aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/testenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/shell/testenv.sh')
-rwxr-xr-xsrc/test/shell/testenv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/shell/testenv.sh b/src/test/shell/testenv.sh
index 44fc1a07cf..9de4521fea 100755
--- a/src/test/shell/testenv.sh
+++ b/src/test/shell/testenv.sh
@@ -80,6 +80,7 @@ BAZEL_RUNFILES="$TEST_SRCDIR/io_bazel"
# WORKSPACE file
workspace_file="${BAZEL_RUNFILES}/WORKSPACE"
+distdir_bzl_file="${BAZEL_RUNFILES}/distdir.bzl"
# Bazel
bazel_tree="$(rlocation io_bazel/src/test/shell/bazel/doc-srcs.zip)"
@@ -136,8 +137,10 @@ def list_source_repository(name):
pass
EOF
touch src/test/shell/bazel/BUILD
- rm -f WORKSPACE
+ rm -f WORKSPACE distdir.bzl
ln -sf ${workspace_file} WORKSPACE
+ touch BUILD
+ ln -sf ${distdir_bzl_file} distdir.bzl
}
# This function copies the tools directory from Bazel.