From: Felipe Barriga Richards Date: Mon, 27 Feb 2017 02:31:19 +0000 (-0300) Subject: run_tests.sh: Check if the filesystem was successfully mounted. X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=e03e2124e109bf8a60032ac54238de32ca38e8d3;p=rrq%2Ffuse_xattrs.git run_tests.sh: Check if the filesystem was successfully mounted. --- diff --git a/run_tests.sh b/run_tests.sh index a3dcb36..1f2fbf1 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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