test-imagex-mount: Check for /dev/fuse both readable and writable
authorEric Biggers <ebiggers3@gmail.com>
Sat, 18 May 2013 16:17:44 +0000 (11:17 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 18 May 2013 16:17:44 +0000 (11:17 -0500)
tests/test-imagex-mount

index a75c4cd..d5bfbca 100755 (executable)
@@ -48,8 +48,8 @@ init() {
        imagex capture tmp.empty empty.wim --norpfix
 }
 
-if [ ! -r /dev/fuse ]; then
-       echo "WARNING: /dev/fuse is not readable."
+if [ ! -r /dev/fuse ] || [ ! -w /dev/fuse ]; then
+       echo "WARNING: /dev/fuse is not readable and writable."
        echo "Skipping WIM mounting checks"
        skip_test
 fi