1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-25 23:21:54 +08:00

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

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Tommi Virtanen
2015-05-11 09:20:13 -07:00
committed by Jeromy
parent a3de9bf3a0
commit 5b96d4d6b8

View File

@ -215,12 +215,20 @@ test_launch_ipfs_daemon() {
fi fi
} }
do_umount() {
if [ "$(uname -s)" = "Linux" ]; then
fusermount -u "$1"
else
umount "$1"
fi
}
test_mount_ipfs() { test_mount_ipfs() {
# make sure stuff is unmounted first. # make sure stuff is unmounted first.
test_expect_success FUSE "'ipfs mount' succeeds" ' test_expect_success FUSE "'ipfs mount' succeeds" '
umount "$(pwd)/ipfs" || true && do_umount "$(pwd)/ipfs" || true &&
umount "$(pwd)/ipns" || true && do_umount "$(pwd)/ipns" || true &&
ipfs mount >actual ipfs mount >actual
' '