X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex-capture_and_apply;h=00090281f378ab1b544c1191da182505293628f0;hb=a3c53f0d3e2ea2267ca89caf100cd41adfabd556;hp=db3fcbe69e501d81fc595672907bc696c50890bb;hpb=929aa432b681dffea92e62fd60c1753a76fabfd1;p=wimlib diff --git a/tests/test-imagex-capture_and_apply b/tests/test-imagex-capture_and_apply index db3fcbe6..00090281 100755 --- a/tests/test-imagex-capture_and_apply +++ b/tests/test-imagex-capture_and_apply @@ -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 $@"