tests: Fix whiteout test
authorAlexander Larsson <alexl@redhat.com>
Thu, 12 Oct 2023 08:18:36 +0000 (10:18 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 12 Oct 2023 08:18:36 +0000 (10:18 +0200)
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.

tests/basic-test.sh

index e2a7d70c1422f1c3a256a33ea3f3cbe1e7594caa..7905e6ee68d2038ab6ba4087648c007bd4fe85a1 100644 (file)
@@ -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/