From e03e2124e109bf8a60032ac54238de32ca38e8d3 Mon Sep 17 00:00:00 2001 From: Felipe Barriga Richards Date: Sun, 26 Feb 2017 23:31:19 -0300 Subject: [PATCH] run_tests.sh: Check if the filesystem was successfully mounted. --- run_tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2