Skip to content

Commit

Permalink
make it easier to update image hashes
Browse files Browse the repository at this point in the history
We had to do this recently with bazelbuild#2098.  This is also useful for organisations that link against different zlib implementations (namely zlib-ng). This change makes it possible to easily swap out the hashes without modifying the test code.
  • Loading branch information
zevdg committed Aug 22, 2022
1 parent 94a7ddb commit 2050758
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 90 deletions.
5 changes: 5 additions & 0 deletions testdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1102,3 +1102,8 @@ bzl_library(
srcs = ["utils.bzl"],
visibility = ["//visibility:private"],
)

filegroup(
name = "goldens",
srcs = glob(["goldens/**"]),
)
1 change: 1 addition & 0 deletions tests/container/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ TEST_DATA = [
"//testdata%s.tar" % t
for t in TEST_TARGETS
] + [
"//testdata:goldens",
"//testdata:push_compression_gzip_fast",
"//testdata:push_compression_gzip_normal",
"//testdata:stamped_bundle_test",
Expand Down

0 comments on commit 2050758

Please sign in to comment.