X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=run_tests.sh;h=5a0b4a0ffb64c2565b27d04cc88a01c11df281f5;hb=10f81048b040f61d76f476300a485dd55b22cbe8;hp=a3dcb365972f9e1ea686dae32d21ce07e5bc0716;hpb=5c2c6d3286e691f8a5b61bc2d83b9cc07bb18e9d;p=rrq%2Ffuse_xattrs.git diff --git a/run_tests.sh b/run_tests.sh index a3dcb36..5a0b4a0 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -2,7 +2,13 @@ mkdir -p test/mount mkdir -p test/source -./fuse_xattrs -o nonempty test/source/ test/mount/ +./fuse_xattrs -o enable_namespaces test/source/ test/mount/ + +if [ $? -ne 0 ]; then + echo "Error mounting the filesystem." + echo "Do you have permissions?" + exit 1 +fi pushd test @@ -13,7 +19,12 @@ set -e popd -fusermount -zu test/mount +if [[ "$OSTYPE" == "darwin"* ]]; then + umount test/mount +else + fusermount -uz test/mount +fi + rm -d test/source rm -d test/mount