From 5aeadd44ad2cdc8fdb13b7c5db82912f7a7ca282 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Mon, 2 Feb 2015 01:38:54 +0100 Subject: [PATCH] test/sharness: improve t0090 by using printf License: MIT Signed-off-by: Christian Couder --- test/sharness/t0090-get.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/sharness/t0090-get.sh b/test/sharness/t0090-get.sh index 46044448a..ffe7f6b32 100755 --- a/test/sharness/t0090-get.sh +++ b/test/sharness/t0090-get.sh @@ -27,8 +27,7 @@ test_expect_success "ipfs get succeeds" ' ' test_expect_success "ipfs get output looks good" ' - echo "Saving file(s) to "$HASH" -" >expected && + printf "%s\n\n" "Saving file(s) to $HASH" >expected && test_cmp expected actual ' @@ -46,8 +45,7 @@ test_expect_success "ipfs get -a succeeds" ' ' test_expect_success "ipfs get -a output looks good" ' - echo "Saving archive to $HASH.tar -" >expected && + printf "%s\n\n" "Saving archive to $HASH.tar" >expected && test_cmp expected actual ' @@ -63,8 +61,7 @@ test_expect_success "ipfs get -a -C succeeds" ' ' test_expect_success "ipfs get -a -C output looks good" ' - echo "Saving archive to $HASH.tar.gz -" >expected && + printf "%s\n\n" "Saving archive to $HASH.tar.gz" >expected && test_cmp expected actual ' @@ -86,8 +83,7 @@ test_expect_success "ipfs get succeeds (directory)" ' ' test_expect_success "ipfs get output looks good (directory)" ' - echo "Saving file(s) to $HASH2 -" >expected && + printf "%s\n\n" "Saving file(s) to $HASH2" >expected && test_cmp expected actual ' @@ -102,8 +98,7 @@ test_expect_success "ipfs get -a -C succeeds (directory)" ' ' test_expect_success "ipfs get -a -C output looks good (directory)" ' - echo "Saving archive to $HASH2.tar.gz -" >expected && + printf "%s\n\n" "Saving archive to $HASH2.tar.gz" >expected && test_cmp expected actual '