diff --git a/test/whiteout.bats b/test/whiteout.bats index b297f320..97429bb5 100644 --- a/test/whiteout.bats +++ b/test/whiteout.bats @@ -76,12 +76,14 @@ EOF # "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 \") + "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'" run "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'" [ "$status" -ne 0 ] # "fulldir" should have a whiteout entry for /a1 md=$(cat oci/index.json | jq .manifests[3].digest | sed s/sha256://g | tr -d \") ld=$(cat oci/blobs/sha256/"$md" | jq .layers[-1].digest | sed s/sha256://g | tr -d \") + "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'" run "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'" [ "$status" -eq 0 ] }