]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-mount
test-imagex-*: Set $srcdir correctly
[wimlib] / tests / test-imagex-mount
index dcfb27d758488e5269438762ee6ad2a4fc15ea94..74cff3f7661adcb916a9a83ee46753ce3633a96b 100755 (executable)
@@ -3,8 +3,9 @@
 # Test WIM mounting
 
 set -e
-srcdir=`pwd`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 if [ ! -r /dev/fuse ]; then
        echo "WARNING: /dev/fuse is not readable."