# remain mounted.
set -e
-srcdir=`pwd`
cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
imagex() {
../imagex $@ > /dev/null
}
__do_unmount() {
- if ! fusermount -u $1; then
+ if ! fusermount -z -u $1; then
error "Failed to unmount \"$1\""
fi