aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/workspace_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/shell/bazel/workspace_test.sh')
-rwxr-xr-xsrc/test/shell/bazel/workspace_test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/shell/bazel/workspace_test.sh b/src/test/shell/bazel/workspace_test.sh
index 3e6d6ed43f..31c6a60103 100755
--- a/src/test/shell/bazel/workspace_test.sh
+++ b/src/test/shell/bazel/workspace_test.sh
@@ -48,7 +48,8 @@ local_repository(
EOF
bazel build @x//:x || fail "build failed"
- assert_contains "hi" bazel-genfiles/external/x/out
+ execroot="$(bazel info execution_root)"
+ assert_contains "hi" "$execroot/../x/bazel-out/local-fastbuild/genfiles/out"
cat > WORKSPACE <<EOF
local_repository(
@@ -58,7 +59,7 @@ local_repository(
EOF
bazel build @x//:x || fail "build failed"
- assert_contains "bye" bazel-genfiles/external/x/out
+ assert_contains "bye" "$execroot/../x/bazel-out/local-fastbuild/genfiles/out"
}