]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex-ntfs
index 5e9a2a3f365ccec392cee1cef9fc3b4d119082eb..85812baf022dad29c897e5c89fed840f73e02ebe 100755 (executable)
@@ -9,8 +9,9 @@
 # remain mounted.
 
 set -e
-srcdir=`pwd`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        ../imagex $@ > /dev/null