From bf8adc6c6974ca2d45e975d2c5d0f6ba3124c7e8 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sat, 3 Oct 2015 22:54:23 +0200 Subject: [PATCH] t0044: fail when 'ipfs add' fails License: MIT Signed-off-by: Christian Couder --- test/sharness/t0044-add-symlink.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sharness/t0044-add-symlink.sh b/test/sharness/t0044-add-symlink.sh index 4b38a7c22..f349fbceb 100755 --- a/test/sharness/t0044-add-symlink.sh +++ b/test/sharness/t0044-add-symlink.sh @@ -18,7 +18,8 @@ test_expect_success "creating files succeeds" ' test_add_symlinks() { test_expect_success "ipfs add files succeeds" ' - ipfs add -q -r files | tail -n 1 > filehash_out + ipfs add -q -r files >filehash_all && + tail -n 1 filehash_all >filehash_out ' test_expect_success "output looks good" '