From e785ad1d64e17302fde7bddc076f821af7de6e4c Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Mon, 5 Jan 2015 08:04:47 -0800 Subject: [PATCH] sharness: make sure not mounted if a test is cancelled, unmount may not run. then, must run umount before mounting, just to make sure. --- test/lib/test-lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lib/test-lib.sh b/test/lib/test-lib.sh index ea91742f0..968627be5 100644 --- a/test/lib/test-lib.sh +++ b/test/lib/test-lib.sh @@ -96,7 +96,10 @@ test_launch_ipfs_daemon() { test_mount_ipfs() { + # make sure stuff is unmounted first. test_expect_success FUSE "'ipfs mount' succeeds" ' + umount $(pwd)/ipfs || true && + umount $(pwd)/ipns || true && ipfs mount >actual '