mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +08:00
sharness: make sure not mounted
if a test is cancelled, unmount may not run. then, must run umount before mounting, just to make sure.
This commit is contained in:
@ -96,7 +96,10 @@ test_launch_ipfs_daemon() {
|
|||||||
|
|
||||||
test_mount_ipfs() {
|
test_mount_ipfs() {
|
||||||
|
|
||||||
|
# make sure stuff is unmounted first.
|
||||||
test_expect_success FUSE "'ipfs mount' succeeds" '
|
test_expect_success FUSE "'ipfs mount' succeeds" '
|
||||||
|
umount $(pwd)/ipfs || true &&
|
||||||
|
umount $(pwd)/ipns || true &&
|
||||||
ipfs mount >actual
|
ipfs mount >actual
|
||||||
'
|
'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user