X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-mount;h=dcfb27d758488e5269438762ee6ad2a4fc15ea94;hp=ebf382ce24e87b835b9b3bf12e9e596682470ee7;hb=0a299dc8f8da1a5993c1610e34b54b1312265249;hpb=f7a9a626a3332d1f4b6c7035a55e41884cdf90dd diff --git a/tests/test-imagex-mount b/tests/test-imagex-mount index ebf382ce..dcfb27d7 100755 --- a/tests/test-imagex-mount +++ b/tests/test-imagex-mount @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Test WIM mounting @@ -6,6 +6,12 @@ set -e srcdir=`pwd` cd tests +if [ ! -r /dev/fuse ]; then + echo "WARNING: /dev/fuse is not readable." + echo "Skipping WIM mounting checks" + exit 0 +fi + imagex() { echo "imagex $@" ../imagex $@ > /dev/null @@ -49,10 +55,13 @@ init() { } error() { - echo "**********************************************" - echo " Test failure " - echo $* - echo "**********************************************" + echo "****************************************************************" + echo " Test failure " + while [ $# -gt 0 ]; do + echo $1 + shift + done + echo "****************************************************************" exit 1 } @@ -69,7 +78,10 @@ for flag in "--compress=none" "--compress=maximum" "--compress=fast"; do fi mkdir tmp if ! imagex mount dir.wim dir tmp; then - error "Failde to mount test WIM read-only" + error "Failed to mount test WIM read-only" \ + "Please read any error messages above before reporting this test failure."\ + "Perhaps you don't have FUSE installed, or the FUSE kernel module isn't" \ + "loaded, or you aren't a member of the FUSE group?" fi echo "Testing extracting file from mounted read-only WIM" if ! cp tmp/lz.c lz.c; then