Skip to content

Commit 94a7d9a

Browse files
committed
test: create: make sure that .history is empty
Signed-off-by: Aleksa Sarai <[email protected]>
1 parent c7ed82a commit 94a7d9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/create.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,10 @@ function teardown() {
8686
sane_run jq -SMr '.process.user.additionalGids' "$BUNDLE/config.json"
8787
[ "$status" -eq 0 ]
8888
[[ "$output" == "null" ]]
89+
90+
# Check that the history looks sane.
91+
umoci stat --image "$NEWIMAGE" --tag "latest" --json
92+
[ "$status" -eq 0 ]
93+
# There should be no non-empty_layers.
94+
[[ "$(echo "$output" | jq -SM '[.history[] | .empty_layer == false] | any')" == "false" ]]
8995
}

0 commit comments

Comments
 (0)