]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
Version 1.2.0
[wimlib] / tests / test-imagex-ntfs
index 85812baf022dad29c897e5c89fed840f73e02ebe..45404d17a15a0dfdd50f1adabe91e00811465009 100755 (executable)
@@ -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