aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rwxr-xr-xsrc/test/shell/bazel/workspace_resolved_test.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/shell/bazel/workspace_resolved_test.sh b/src/test/shell/bazel/workspace_resolved_test.sh
index e3a18f21c2..cc9d9ec6d8 100755
--- a/src/test/shell/bazel/workspace_resolved_test.sh
+++ b/src/test/shell/bazel/workspace_resolved_test.sh
@@ -350,6 +350,19 @@ EOF
bazel build :a :b || fail "Expected both repositories to be present"
}
+test_sync_load_errors_reported() {
+ rm -rf fetchrepo
+ mkdir fetchrepo
+ cd fetchrepo
+ cat > WORKSPACE <<'EOF'
+load("//does/not:exist.bzl", "randomfunction")
+
+radomfunction(name="foo")
+EOF
+ bazel sync > "${TEST_log}" 2>&1 && fail "Expected failure" || :
+ expect_log '//does/not:exist.bzl'
+}
+
test_sync_debug_and_errors_printed() {
rm -rf fetchrepo
mkdir fetchrepo