sharness: make sure not mounted
if a test is cancelled, unmount may not run. then, must run umount before mounting, just to make sure.
Juan Batiz-Benet committed
Jan 5, 2015 at 08:04 UTC
e785ad1d64e17302fde7bddc076f821af7de6e4c
1 file changed
+3
test/lib/test-lib.sh
+3
@@ -96,7 +96,10 @@ test_launch_ipfs_daemon() {
96
97
test_mount_ipfs() {
98
99
+ # make sure stuff is unmounted first.
100
test_expect_success FUSE "'ipfs mount' succeeds" '
101
+ umount $(pwd)/ipfs || true &&
102
+ umount $(pwd)/ipns || true &&
103
ipfs mount >actual
104
'
105