aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2016-07-20 14:55:53 +0000
committerGravatar John Cater <jcater@google.com>2016-07-20 15:02:10 +0000
commit2479405822a955d009ad5f4e170391a75f5e33c5 (patch)
tree3240735e4534dc0052f043fdd6a9887346cb8671 /src/test/shell
parentb47f344508faa2d2ba8dc93a58546c0ebe9d6584 (diff)
Fix NPE with unset maven_jar sha1
Fixes #1537. -- MOS_MIGRATED_REVID=127945452
Diffstat (limited to 'src/test/shell')
-rwxr-xr-xsrc/test/shell/bazel/maven_test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/shell/bazel/maven_test.sh b/src/test/shell/bazel/maven_test.sh
index 48d60f36fb..c3d9293a33 100755
--- a/src/test/shell/bazel/maven_test.sh
+++ b/src/test/shell/bazel/maven_test.sh
@@ -114,19 +114,20 @@ function test_maven_jar_mismatched_sha1() {
setup_zoo
serve_jar
+ wrong_sha1="0123456789012345678901234567890123456789"
cat > WORKSPACE <<EOF
maven_jar(
name = 'endangered',
artifact = "com.example.carnivore:carnivore:1.23",
repository = 'http://localhost:$nc_port/',
- sha1 = '$sha256',
+ sha1 = '$wrong_sha1',
)
bind(name = 'mongoose', actual = '@endangered//jar')
EOF
bazel fetch //zoo:ball-pit >& $TEST_log && echo "Expected fetch to fail"
kill_nc
- expect_log "has SHA-1 of $sha1, does not match expected SHA-1 ($sha256)"
+ expect_log "has SHA-1 of $sha1, does not match expected SHA-1 ($wrong_sha1)"
}
function test_default_repository() {