Skip to content

Commit

Permalink
external_integration_test: provide needed checksum
Browse files Browse the repository at this point in the history
In preparation of the flag flip in #8607, use a checksum for
our plain http-downloads.

Change-Id: I834abaccdb4b727f48c3dc2df8cd119839a85992
PiperOrigin-RevId: 258569601
  • Loading branch information
aehlig authored and copybara-github committed Jul 17, 2019
1 parent 6d63f8a commit 66a5773
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/shell/bazel/external_integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ function test_jar_download() {

cat >> $(create_workspace_with_default_repos WORKSPACE) <<EOF
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")
http_jar(name = 'endangered', url = 'http://127.0.0.1:$nc_port/lib.jar')
http_jar(name = 'endangered', url = 'http://127.0.0.1:$nc_port/lib.jar',
sha256='$sha256')
EOF

mkdir -p zoo
Expand Down Expand Up @@ -850,6 +851,7 @@ function test_flip_flopping() {
create_workspace_with_default_repos WORKSPACE
touch BUILD foo
zip -r repo.zip *
sha256=$(sha256sum repo.zip | head -c 64)
startup_server $PWD
# Make the remote repo and local repo slightly different.
rm foo
Expand All @@ -867,6 +869,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "repo",
url = "http://127.0.0.1:$fileserver_port/repo.zip",
sha256 = "$sha256",
)
EOF
external_dir=$(bazel info output_base)/external
Expand Down

0 comments on commit 66a5773

Please sign in to comment.