]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex
Fix various issues
[wimlib] / tests / test-imagex
index 9a7f4f0949b2a98735b7228a51191fe9b48934e9..faae7d4b40fd890d889ceb01b1bdff66d9d0f318 100755 (executable)
@@ -19,6 +19,8 @@ cleanup() {
        rm -rf dir* tmp* *.wim *.swm
 }
 trap cleanup exit
+fusermount -u tmp || true
+rm -rf tmp || true
 
 # Make test directory
 mkdir dir
@@ -260,7 +262,7 @@ if imagex append SOME_NONEXISTENT_FILE dir.wim; then
 fi
 echo "Testing appending directory containing unreadable file (should generate errors)"
 mkdir -p dir3
-touch dir3/file
+echo 1 > dir3/file
 chmod -r dir3/file
 if imagex append dir3 dir.wim; then
        error "Incorrectly succeeded in capturing directory with unreadable file"