X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=c046c2de7fa39dbe326bb72b8578ed2d98ea0920;hp=73cda082a3296ed5d993524e23dce7044533248d;hb=5cdd60306facd14cc9dcc24471386451294ca73c;hpb=f7a9a626a3332d1f4b6c7035a55e41884cdf90dd diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index 73cda082..c046c2de 100755 --- a/tests/test-imagex-ntfs +++ b/tests/test-imagex-ntfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does some sanity testing of the 'imagex' program, specifically # checking the NTFS capture and apply features. @@ -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