]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-capture_and_apply
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex-capture_and_apply
index db3fcbe69e501d81fc595672907bc696c50890bb..00090281f378ab1b544c1191da182505293628f0 100755 (executable)
@@ -9,8 +9,9 @@
 # Also, test if the capture configuration file works correctly.
 
 set -e
-srcdir=`pwd`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        echo "imagex $@"