X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=c046c2de7fa39dbe326bb72b8578ed2d98ea0920;hp=a129a70fcf7ea5e8439bf2771434788398fca6e2;hb=5cdd60306facd14cc9dcc24471386451294ca73c;hpb=302d18acd7ed0423cfd37a9f1a8f5b70a8fe9965 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