]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-capture_and_apply
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex-capture_and_apply
index fcac5cee4a36096ca1b817f178a7a40eb66f76ed..00090281f378ab1b544c1191da182505293628f0 100755 (executable)
@@ -10,7 +10,8 @@
 
 set -e
 cd tests
-srcdir=..
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        echo "imagex $@"