]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-mount
tree-cmp without xattr
[wimlib] / tests / test-imagex-mount
index 1134abf338ff78641c87232133cadb265fdca16d..21702c0797214d45c84872a74697ea813d978191 100755 (executable)
@@ -3,9 +3,8 @@
 # Test WIM mounting
 
 set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
 cd tests
+srcdir=..
 
 imagex() {
        echo "imagex $@"
@@ -27,12 +26,8 @@ imagex_mountrw() {
 }
 
 cleanup() {
-       if mountpoint tmp &> /dev/null; then
-               fusermount -u tmp > /dev/null;
-       fi
-       if mountpoint tmp.mnt &> /dev/null; then
-               fusermount -u tmp.mnt > /dev/null;
-       fi
+       fusermount -u tmp &> /dev/null || true
+       fusermount -u tmp.mnt &> /dev/null || true
        rm -rf dir* tmp* *.wim *.swm empty.wim tmp.orig tmp.mnt \
                        tmp.apply mount.log test.tar wimlib-staging*
 }