From ef85f676108cf5ab98b62a8a804bebfa319860b7 Mon Sep 17 00:00:00 2001 From: Christian Couder <chriscool@tuxfamily.org> Date: Sun, 15 Mar 2015 16:57:55 +0100 Subject: [PATCH] t0051: fix indentation Fix indentation and use > instead of >> to create an expected file. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- test/sharness/t0051-object.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/sharness/t0051-object.sh b/test/sharness/t0051-object.sh index da5ff3ef3..586563c1b 100755 --- a/test/sharness/t0051-object.sh +++ b/test/sharness/t0051-object.sh @@ -30,16 +30,16 @@ test_expect_success "'ipfs object get' output looks good" ' ' test_expect_success "'ipfs object stat' succeeds" ' - ipfs object stat $HASH >actual_stat + ipfs object stat $HASH >actual_stat ' test_expect_success "'ipfs object get' output looks good" ' -echo "NumLinks: 0" >> expected_stat && -echo "BlockSize: 18" >> expected_stat && -echo "LinksSize: 2" >> expected_stat && -echo "DataSize: 16" >> expected_stat && -echo "CumulativeSize: 18" >> expected_stat && - test_cmp expected_stat actual_stat + echo "NumLinks: 0" > expected_stat && + echo "BlockSize: 18" >> expected_stat && + echo "LinksSize: 2" >> expected_stat && + echo "DataSize: 16" >> expected_stat && + echo "CumulativeSize: 18" >> expected_stat && + test_cmp expected_stat actual_stat ' test_expect_success "'ipfs object put file.json' succeeds" ' @@ -83,14 +83,14 @@ test_expect_success "'ipfs object put' from stdin (pb) output looks good" ' ' test_expect_success "'ipfs object put broken.json' should fail" ' - test_expect_code 1 ipfs object put ../t0051-object-data/brokenPut.json 2>actual_putBrokenErr >actual_putBroken + test_expect_code 1 ipfs object put ../t0051-object-data/brokenPut.json 2>actual_putBrokenErr >actual_putBroken ' test_expect_success "'ipfs object put broken.hjson' output looks good" ' - touch expected_putBroken && - printf "Error: no data or links in this node\n" > expected_putBrokenErr && - test_cmp expected_putBroken actual_putBroken && - test_cmp expected_putBrokenErr actual_putBrokenErr + touch expected_putBroken && + printf "Error: no data or links in this node\n" > expected_putBrokenErr && + test_cmp expected_putBroken actual_putBroken && + test_cmp expected_putBrokenErr actual_putBrokenErr ' -- GitLab