Skip to content

Commit

Permalink
Only look for the layer digests in the Layers field.
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Feb 15, 2022
1 parent 7736312 commit 49d9fa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion systemtest/010-inspect.bats
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ load helpers
# Each SHA-named layer file (but not the config) must be listed in the output of 'inspect'.
# As of Skopeo 1.6, (skopeo inspect)'s output lists layer digests,
# but not the digest of the config blob ($config_digest), if any.
layers=$(jq -r '.Layers' <<<"$inspect_local")
for sha in $(find $workdir -type f | xargs -l1 basename | egrep '^[0-9a-f]{64}$'); do
if [ "sha256:$sha" != "$config_digest" ]; then
expect_output --from="$inspect_local" --substring "sha256:$sha" \
expect_output --from="$layers" --substring "sha256:$sha" \
"Locally-extracted SHA file is present in 'inspect'"
fi
done
Expand Down

0 comments on commit 49d9fa9

Please sign in to comment.