X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=85812baf022dad29c897e5c89fed840f73e02ebe;hp=40c005cc9feccf943d2033d98454c9263e332c19;hb=a3c53f0d3e2ea2267ca89caf100cd41adfabd556;hpb=d0e7f039e4ab206b9fd973c983e3fb841fcd2bf2 diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index 40c005cc..85812baf 100755 --- a/tests/test-imagex-ntfs +++ b/tests/test-imagex-ntfs @@ -9,16 +9,16 @@ # remain mounted. set -e -srcdir=${srcdir:-.} -srcdir=`realpath $srcdir` 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