X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=45404d17a15a0dfdd50f1adabe91e00811465009;hp=73cda082a3296ed5d993524e23dce7044533248d;hb=a5e30a05b4d7f02c57cc8fbb18e22d6fe31a79a0;hpb=f7a9a626a3332d1f4b6c7035a55e41884cdf90dd diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index 73cda082..45404d17 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,19 +9,20 @@ # remain mounted. set -e -srcdir=`pwd` cd tests +. tests-common.sh imagex() { ../imagex $@ > /dev/null } __do_unmount() { - if ! fusermount -u $1; then + if ! fusermount -z -u $1; then error "Failed to unmount \"$1\"" fi } + do_unmount() { if mountpoint $1 &> /dev/null; then __do_unmount $1