Skip to content

Commit

Permalink
test: add additional tests for whiteout fixes
Browse files Browse the repository at this point in the history
acd8a68 address some breakages related
to whiteouts.

This PR adds some more verification steps.

Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Sep 17, 2024
1 parent 7b4a6e2 commit 2a7dd3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/whiteout.bats
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ fulldir:
EOF

stacker build

# "bb" should not have a whiteout entry for /a1
md=$(cat oci/index.json | jq .manifests[0].digest | sed s/sha256://g | tr -d \")
ld=$(cat oci/blobs/sha256/"$md" | jq .layers[-1].digest | sed s/sha256://g | tr -d \")
run "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'"
[ "$status" -ne 0 ]
}

0 comments on commit 2a7dd3d

Please sign in to comment.