X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex;h=2601d876d49cb01efbbf760e74088074c5fd1f41;hp=00bf0044711888ecd040889b7fd0239e3d40fa5f;hb=051a59e4c6d114fc7abfa14ff78436adab5defb9;hpb=f7a9a626a3332d1f4b6c7035a55e41884cdf90dd diff --git a/tests/test-imagex b/tests/test-imagex index 00bf0044..2601d876 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -1,11 +1,12 @@ -#!/bin/sh +#!/bin/bash # This script does some sanity testing of the 'imagex' program. It by no means # tests every aspect of wimlib comprehensively. set -e -srcdir=`pwd` cd tests +srcdir="${srcdir:-.}/.." +srcdir="$(cd $srcdir; pwd)" imagex() { echo "imagex $@" @@ -18,7 +19,8 @@ imagex_info() { } cleanup() { - rm -rf dir* tmp* *.wim *.swm + fusermount -u tmp &> /dev/null || true + rm -rf dir* tmp* *.wim *.swm &> /dev/null || true } cleanup