diff options
author | 2016-07-20 14:55:53 +0000 | |
---|---|---|
committer | 2016-07-20 15:02:10 +0000 | |
commit | 2479405822a955d009ad5f4e170391a75f5e33c5 (patch) | |
tree | 3240735e4534dc0052f043fdd6a9887346cb8671 /src/test/shell | |
parent | b47f344508faa2d2ba8dc93a58546c0ebe9d6584 (diff) |
Fix NPE with unset maven_jar sha1
Fixes #1537.
--
MOS_MIGRATED_REVID=127945452
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/bazel/maven_test.sh | 5 |
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() { |