Skip to content

Commit

Permalink
tests: Fix whiteout test
Browse files Browse the repository at this point in the history
This test was always skipped, because the check:

 if touch overlay/baz/.wh.cow &&
    touch overlay/.wh.deeper &&
    touch overlay/baz/another/.wh..wh..opq; then

always fails due to the missing overlay/baz/another directory.
Fix by creating the directory.
  • Loading branch information
alexlarsson committed Oct 12, 2023
1 parent 6cce2e2 commit 397a117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/basic-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ echo "ok test error pre commit/bootid"

# Whiteouts
cd ${test_tmpdir}
mkdir -p overlay/baz/
mkdir -p overlay/baz/another/
if touch overlay/baz/.wh.cow && touch overlay/.wh.deeper && touch overlay/baz/another/.wh..wh..opq; then
touch overlay/anewfile
mkdir overlay/anewdir/
Expand Down

0 comments on commit 397a117

Please sign in to comment.