t0020: improve error message
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Feb 12, 2016 at 09:40 UTC
ce5eac46d4b5f6047952db7bbd5838fd525945ae
1 file changed
+3
-1
test/sharness/t0020-init.sh
+3
-1
@@ -45,8 +45,10 @@ test_expect_success "ipfs cat no repo message looks good" '
45
# test that init succeeds
46
test_expect_success "ipfs init succeeds" '
47
export IPFS_PATH="$(pwd)/.ipfs" &&
48
+ echo "IPFS_PATH: \"$IPFS_PATH\"" &&
49
BITS="2048" &&
49
- ipfs init --bits="$BITS" >actual_init
50
+ ipfs init --bits="$BITS" >actual_init ||
51
+ test_fsh cat actual_init
52
'
53
54
test_expect_success ".ipfs/ has been created" '