From ce2e610428c940c2bd5ca1790e7375117b1f6015 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 15 Feb 2017 23:02:01 +0100 Subject: OSX compat: replace fusermount calls with fuse-unmount.bash Mac OS X does not have fusermount and uses umount instead. The fuse-unmount.bash calls the appropriate command. --- tests/reverse/linux-tarball-test.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/reverse') diff --git a/tests/reverse/linux-tarball-test.bash b/tests/reverse/linux-tarball-test.bash index 5fbc3fc..e8ecca6 100755 --- a/tests/reverse/linux-tarball-test.bash +++ b/tests/reverse/linux-tarball-test.bash @@ -5,6 +5,7 @@ set -eu cd "$(dirname "$0")" MD5="$PWD/../stress_tests/linux-3.0.md5sums" MYNAME=$(basename "$0") +source ../fuse-unmount.bash # Setup dirs cd /tmp @@ -12,7 +13,7 @@ wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3 WD=$(mktemp -d /tmp/$MYNAME.XXX) # Cleanup trap -trap "set +u; cd /; fusermount -u -z $WD/c; fusermount -u -z $WD/b; rm -rf $WD" EXIT +trap "set +u; cd /; fuse-unmount -z $WD/c; fuse-unmount -z $WD/b; rm -rf $WD" EXIT cd $WD mkdir a b c -- cgit v1.2.3