]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
Re-organize code
[wimlib] / tests / test-imagex-ntfs
index 85812baf022dad29c897e5c89fed840f73e02ebe..66c39de4846bb8d90060eec53b112bbb38427e8b 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.
@@ -12,6 +12,7 @@ set -e
 cd tests
 srcdir="${srcdir:-.}/.."
 srcdir="$(cd $srcdir; pwd)"
+. "$srcdir/tests/tests-common.sh"
 
 imagex() {
        ../imagex $@ > /dev/null
@@ -23,6 +24,7 @@ __do_unmount() {
        fi
 
 }
+
 do_unmount() {
        if mountpoint $1 &> /dev/null; then
                __do_unmount $1