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:
@ -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
|
||||||
'
|
'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user