]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex-ntfs
index a129a70fcf7ea5e8439bf2771434788398fca6e2..85812baf022dad29c897e5c89fed840f73e02ebe 100755 (executable)
 
 set -e
 cd tests
-srcdir=..
+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