t0030: encapsulate ipfs mount
As described in issue #1109 on OSX some output from test_must_fail unfortunately goes into the "output" file that we use to test the output from "ipfs mount". This patch avoids the above by encapsulating the call to "ipfs mount" into a temporary function. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Apr 21, 2015 at 15:49 UTC
a7b022702924acc3df3b5a396e789086cb74d8be
1 file changed
+2
-1
test/sharness/t0030-mount.sh
+2
-1
@@ -21,7 +21,8 @@ test_launch_ipfs_daemon
21
# test mount failure before mounting properly.
22
23
test_expect_success "'ipfs mount' fails when there is no mount dir" '
24
- test_must_fail ipfs mount -f=not_ipfs -n=not_ipns >output 2>output.err
24
+ tmp_ipfs_mount() { ipfs mount -f=not_ipfs -n=not_ipns >output 2>output.err; } &&
25
+ test_must_fail tmp_ipfs_mount
26
'
27
28
test_expect_failure "'ipfs mount' output looks good" '