-#!/bin/bash
+#!/usr/bin/env bash
# This script does some sanity testing of the 'imagex' program, specifically
# checking the NTFS capture and apply features.
set -e
cd tests
-srcdir="${srcdir:-.}/.."
-srcdir="$(cd $srcdir; pwd)"
+. tests-common.sh
imagex() {
../imagex $@ > /dev/null
fi
}
+
do_unmount() {
if mountpoint $1 &> /dev/null; then
__do_unmount $1