run_tests.sh: Check if the filesystem was successfully mounted.
authorFelipe Barriga Richards <spam@felipebarriga.cl>
Mon, 27 Feb 2017 02:31:19 +0000 (23:31 -0300)
committerFelipe Barriga Richards <spam@felipebarriga.cl>
Mon, 27 Feb 2017 02:31:19 +0000 (23:31 -0300)
run_tests.sh

index a3dcb365972f9e1ea686dae32d21ce07e5bc0716..1f2fbf14f4f3e3f6e0e4db7ae2e04c07fd43bd27 100755 (executable)
@@ -4,6 +4,12 @@ mkdir -p test/mount
 mkdir -p test/source
 ./fuse_xattrs -o nonempty test/source/ test/mount/
 
+if [ $? -ne 0 ]; then
+    echo "Error mounting the filesystem."
+    echo "Do you have permissions?"
+    exit 1
+fi
+
 pushd test
 
 set +e