X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=45404d17a15a0dfdd50f1adabe91e00811465009;hp=85812baf022dad29c897e5c89fed840f73e02ebe;hb=a5e30a05b4d7f02c57cc8fbb18e22d6fe31a79a0;hpb=a3c53f0d3e2ea2267ca89caf100cd41adfabd556 diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index 85812baf..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. @@ -10,8 +10,7 @@ set -e cd tests -srcdir="${srcdir:-.}/.." -srcdir="$(cd $srcdir; pwd)" +. tests-common.sh imagex() { ../imagex $@ > /dev/null @@ -23,6 +22,7 @@ __do_unmount() { fi } + do_unmount() { if mountpoint $1 &> /dev/null; then __do_unmount $1