]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex
index 0d49e22e63a5713868c684acf601505b0cfaab01..fcbf5406fb2b4a2cc4eb5fcb3726d033db5da233 100755 (executable)
@@ -4,8 +4,9 @@
 # tests every aspect of wimlib comprehensively.
 
 set -e
 # tests every aspect of wimlib comprehensively.
 
 set -e
-srcdir=`pwd`
 cd tests
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        echo "imagex $@"
 
 imagex() {
        echo "imagex $@"