Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
rchincha committed Sep 17, 2024
1 parent 2a7dd3d commit d04aca3
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 @@ -78,4 +78,10 @@ EOF
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 ]

# "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 \")
run "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'"
[ "$status" -eq 0 ]
}

0 comments on commit d04aca3

Please sign in to comment.