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