@cryptotaxi247 / kubo / commits / 14cd8634e

test-lib.sh: fix umount calls

As test directories contain a space, we need to properly quote paths, otherwise we get errors like: ``` umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash is not mounted (according to mtab) umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash is not mounted (according to mtab) ``` instead of: ``` umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash directory.t0030-mount.sh/ipfs is not mounted (according to mtab) umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash directory.t0030-mount.sh/ipns is not mounted (according to mtab) ``` License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Apr 21, 2015 at 16:08 UTC 14cd8634ef371930567d573d1a56c703d3708896
1 file changed +2 -2
test/sharness/lib/test-lib.sh
+2 -2
@@ -214,8 +214,8 @@ test_mount_ipfs() {
214
215 # make sure stuff is unmounted first.
216 test_expect_success FUSE "'ipfs mount' succeeds" '
217 - umount $(pwd)/ipfs || true &&
218 - umount $(pwd)/ipns || true &&
217 + umount "$(pwd)/ipfs" || true &&
218 + umount "$(pwd)/ipns" || true &&
219 ipfs mount >actual
220 '
221