X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex;h=fcbf5406fb2b4a2cc4eb5fcb3726d033db5da233;hp=0d49e22e63a5713868c684acf601505b0cfaab01;hb=a3c53f0d3e2ea2267ca89caf100cd41adfabd556;hpb=929aa432b681dffea92e62fd60c1753a76fabfd1 diff --git a/tests/test-imagex b/tests/test-imagex index 0d49e22e..fcbf5406 100755 --- a/tests/test-imagex +++ b/tests/test-imagex @@ -4,8 +4,9 @@ # tests every aspect of wimlib comprehensively. set -e -srcdir=`pwd` cd tests +srcdir="${srcdir:-.}/.." +srcdir="$(cd $srcdir; pwd)" imagex() { echo "imagex $@"