aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/local_repository_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/shell/bazel/local_repository_test.sh')
-rwxr-xr-xsrc/test/shell/bazel/local_repository_test.sh14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/test/shell/bazel/local_repository_test.sh b/src/test/shell/bazel/local_repository_test.sh
index de146d3aba..0546bc47b8 100755
--- a/src/test/shell/bazel/local_repository_test.sh
+++ b/src/test/shell/bazel/local_repository_test.sh
@@ -348,7 +348,7 @@ EOF
}
# Creates an indirect dependency on X from A and make sure the error message
-# refers to the correct label, both in an external repository and not.
+# refers to the correct label.
function test_indirect_dep_message() {
local external_dir=$TEST_TMPDIR/ext-dir
mkdir -p a b $external_dir/x
@@ -391,8 +391,6 @@ java_library(
)
EOF
- cp -r a b $external_dir
-
touch $external_dir/WORKSPACE
cat > $external_dir/x/X.java <<EOF
package x;
@@ -420,15 +418,7 @@ EOF
bazel build //a:a >& $TEST_log && fail "Building //a:a should error out"
expect_log "** Please add the following dependencies:"
- expect_log "@x_repo//x to //a"
-
- bazel build //a >& $TEST_log && fail "Building //a should error out"
- expect_log "** Please add the following dependencies:"
- expect_log "@x_repo//x to //a"
-
- bazel build @x_repo//a >& $TEST_log && fail "Building @x_repo//a should error out"
- expect_log "** Please add the following dependencies:"
- expect_log "@x_repo//x to @x_repo//a"
+ expect_log "@x_repo//x to //a:a"
}
function test_external_includes() {