X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=tests%2Ftest-imagex-mount;h=4f6d1c95e58521ae0570339abdf65e2c5b207646;hb=00b7886e84f81cf10d3adc3ab4594ea9ff5d7fc0;hp=dcfb27d758488e5269438762ee6ad2a4fc15ea94;hpb=fd4b7f8da1550b65583b351a9af2672e6f825963;p=wimlib diff --git a/tests/test-imagex-mount b/tests/test-imagex-mount index dcfb27d7..4f6d1c95 100755 --- a/tests/test-imagex-mount +++ b/tests/test-imagex-mount @@ -1,10 +1,11 @@ -#!/bin/bash +#!/usr/bin/env bash # 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." @@ -238,7 +239,7 @@ do_test() { fi cd tmp.mnt - if ! tar xf ../test.tar; then + if ! tar xf ../test.tar --no-same-owner; then error "Failed to untar archive on read-write mounted WIM" fi cd .. @@ -253,7 +254,7 @@ do_test() { fi cd tmp.mnt - if ! tar xf ../test.tar; then + if ! tar xf ../test.tar --no-same-owner; then error "Failed to untar archive on read-write mounted WIM" fi cd ..