-#!/bin/sh
+#!/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."
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 ..
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 ..