Commit 5b96d4d6 authored by Tommi Virtanen's avatar Tommi Virtanen Committed by Jeromy

sharness: `fusermount -u` is the documented way to unmount FUSE on Linux

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent a3de9bf3
......@@ -215,12 +215,20 @@ test_launch_ipfs_daemon() {
fi
}
do_umount() {
if [ "$(uname -s)" = "Linux" ]; then
fusermount -u "$1"
else
umount "$1"
fi
}
test_mount_ipfs() {
# make sure stuff is unmounted first.
test_expect_success FUSE "'ipfs mount' succeeds" '
umount "$(pwd)/ipfs" || true &&
umount "$(pwd)/ipns" || true &&
do_umount "$(pwd)/ipfs" || true &&
do_umount "$(pwd)/ipns" || true &&
ipfs mount >actual
'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment