Merge pull request #1112 from ipfs/encapsulate_ipfs_mount

sharness: encapsulate ipfs mount
This commit is contained in:
Juan Batiz-Benet 2015-04-21 22:24:49 -07:00
commit 960de83683

View File

@ -21,10 +21,11 @@ test_launch_ipfs_daemon
# test mount failure before mounting properly.
test_expect_success "'ipfs mount' fails when there is no mount dir" '
test_must_fail ipfs mount -f=not_ipfs -n=not_ipns >output 2>output.err
tmp_ipfs_mount() { ipfs mount -f=not_ipfs -n=not_ipns >output 2>output.err; } &&
test_must_fail tmp_ipfs_mount
'
test_expect_failure "'ipfs mount' output looks good" '
test_expect_success "'ipfs mount' output looks good" '
test_must_be_empty output &&
test_should_contain "not_ipns\|not_ipfs" output.err
'