X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;h=45404d17a15a0dfdd50f1adabe91e00811465009;hp=5e9a2a3f365ccec392cee1cef9fc3b4d119082eb;hb=0ce54d08c0b1c56f37ea2998acd6847da7ced8a2;hpb=8c77eaafc1aa3874b641470e8e9ecf50a5b50a55 diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index 5e9a2a3f..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,8 +9,8 @@ # remain mounted. set -e -srcdir=`pwd` cd tests +. tests-common.sh imagex() { ../imagex $@ > /dev/null @@ -22,6 +22,7 @@ __do_unmount() { fi } + do_unmount() { if mountpoint $1 &> /dev/null; then __do_unmount $1