X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Ftest-imagex-ntfs;fp=tests%2Ftest-imagex-ntfs;h=710098481ce6fe373a002bc65145f45b0aea37dd;hp=e1c8195e0d887fdf7c4db69faff0d3afc04fa7be;hb=ae4ea9fadca8e98341fedd543417bf6a204b2005;hpb=466646c4f936eb3387b76dcb9a41e7b8cfb98fe2 diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index e1c8195e..71009848 100755 --- a/tests/test-imagex-ntfs +++ b/tests/test-imagex-ntfs @@ -29,12 +29,18 @@ do_unmount() { fi } +skip_test() { + cd .. + cleanup + exit 77 +} + __do_mount() { if ! ntfs-3g -o "no_def_opts,silent" $1 $2; then if [ $UID -ne 0 ] && [ "$3" = "nofail" ]; then echo "WARNING: skipping NTFS tests because we aren't able to " echo "mount a NTFS volume (perhaps ntfs-3g is not installed setuid root?)" - exit 0 + skip_test else error "Could not mount NTFS volume \"$1\" on \"$2\"! Make sure ntfs-3g is "\ "installed, and that you are either running the tests as root or have ntfs-3g "\