From 3e0f7cb60003feced005d4ae475a39c556310485 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Sat, 6 Jan 2018 15:52:39 -0800 Subject: [PATCH] fix add-and-cat sharness test on osx License: MIT Signed-off-by: Steven Allen --- test/sharness/t0040-add-and-cat.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/sharness/t0040-add-and-cat.sh b/test/sharness/t0040-add-and-cat.sh index 00419cc95..e863353b6 100755 --- a/test/sharness/t0040-add-and-cat.sh +++ b/test/sharness/t0040-add-and-cat.sh @@ -83,7 +83,7 @@ test_add_cat_file() { ' test_expect_success "ipfs cat with length output looks good" ' - echo -n "Hello Wo" >expected && + printf "Hello Wo" >expected && test_cmp expected actual ' @@ -92,8 +92,7 @@ test_add_cat_file() { ' test_expect_success "ipfs cat multiple hashes with offset and length looks good" ' - echo " Worlds!" >expected && - echo -n "Hello " >>expected && + printf " Worlds!\nHello " >expected && test_cmp expected actual '