]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
test-imagex-ntfs: Use lazy unmount
[wimlib] / tests / test-imagex-ntfs
index 40c005cc9feccf943d2033d98454c9263e332c19..5e9a2a3f365ccec392cee1cef9fc3b4d119082eb 100755 (executable)
@@ -9,8 +9,7 @@
 # remain mounted.
 
 set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
+srcdir=`pwd`
 cd tests
 
 imagex() {
@@ -18,7 +17,7 @@ imagex() {
 }
 
 __do_unmount() {
-       if !  fusermount -u $1; then
+       if !  fusermount -z -u $1; then
                error "Failed to unmount \"$1\""
        fi