]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex-ntfs
index 40c005cc9feccf943d2033d98454c9263e332c19..85812baf022dad29c897e5c89fed840f73e02ebe 100755 (executable)
@@ -9,16 +9,16 @@
 # remain mounted.
 
 set -e
 # remain mounted.
 
 set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
 cd tests
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        ../imagex $@ > /dev/null
 }
 
 __do_unmount() {
 
 imagex() {
        ../imagex $@ > /dev/null
 }
 
 __do_unmount() {
-       if !  fusermount -u $1; then
+       if !  fusermount -z -u $1; then
                error "Failed to unmount \"$1\""
        fi
 
                error "Failed to unmount \"$1\""
        fi