X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=c046c2de7fa39dbe326bb72b8578ed2d98ea0920;hb=9f6a1409c765f07fc4c030d1428461b38898b2bd;hp=a129a70fcf7ea5e8439bf2771434788398fca6e2;hpb=302d18acd7ed0423cfd37a9f1a8f5b70a8fe9965;p=wimlib diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index a129a70f..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. @@ -10,14 +10,15 @@ 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