提交 5b96d4d6 作者: Tommi Virtanen 提交者: Jeromy

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

License: MIT
Signed-off-by: 's avatarJeromy <jeromyj@gmail.com>
上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论