aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/skylark_repository_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/shell/bazel/skylark_repository_test.sh')
-rwxr-xr-xsrc/test/shell/bazel/skylark_repository_test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/shell/bazel/skylark_repository_test.sh b/src/test/shell/bazel/skylark_repository_test.sh
index 0e8ef1652d..95a612125d 100755
--- a/src/test/shell/bazel/skylark_repository_test.sh
+++ b/src/test/shell/bazel/skylark_repository_test.sh
@@ -286,7 +286,8 @@ EOF
bazel build @foo//:bar >& $TEST_log || fail "Failed to build"
expect_log "foo"
expect_not_log "Workspace name in .*/WORKSPACE (@__main__) does not match the name given in the repository's definition (@foo)"
- cat bazel-genfiles/external/foo/bar.txt >$TEST_log
+ local execution_root=$(bazel info execution_root)
+ cat "$execution_root/../foo/bazel-out/local-fastbuild/genfiles/bar.txt" >$TEST_log
expect_log "foo"
}