tests: Fix whiteout test

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.
This commit is contained in:
Alexander Larsson 2023-10-12 10:18:36 +02:00
parent 6cce2e2381
commit 397a11762e

View File

@ -1126,7 +1126,7 @@ echo "ok test error pre commit/bootid"
# Whiteouts # Whiteouts
cd ${test_tmpdir} 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 if touch overlay/baz/.wh.cow && touch overlay/.wh.deeper && touch overlay/baz/another/.wh..wh..opq; then
touch overlay/anewfile touch overlay/anewfile
mkdir overlay/anewdir/ mkdir overlay/anewdir/