diff --git a/test/whiteout.bats b/test/whiteout.bats index 9cee2e91..2e315656 100644 --- a/test/whiteout.bats +++ b/test/whiteout.bats @@ -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 ] }