From 8f102d2cbdedd4238f61628c69ff99e1bdc828bd Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sat, 3 Oct 2015 23:26:20 +0200 Subject: [PATCH] t0051: swap test_cmp arguments License: MIT Signed-off-by: Christian Couder --- test/sharness/t0051-object.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/sharness/t0051-object.sh b/test/sharness/t0051-object.sh index fb77d6e540d..edf94b88b7a 100755 --- a/test/sharness/t0051-object.sh +++ b/test/sharness/t0051-object.sh @@ -20,9 +20,9 @@ test_patch_create_path() { ' test_expect_success "output looks good" ' - ipfs cat $PCOUT/$name > tpcp_out && - ipfs cat $target > tpcp_exp && - test_cmp tpcp_out tpcp_exp + ipfs cat "$PCOUT/$name" >tpcp_out && + ipfs cat "$target" >tpcp_exp && + test_cmp tpcp_exp tpcp_out ' } @@ -161,7 +161,7 @@ test_object_cmd() { echo DataSize: 2 >> obj_stat_exp && echo CumulativeSize: 114 >> obj_stat_exp && - test_cmp obj_stat_out obj_stat_exp + test_cmp obj_stat_exp obj_stat_out ' test_expect_success "should have created dir within a dir" ' @@ -188,7 +188,7 @@ test_object_cmd() { test_expect_success "output looks good" ' echo "QmZD3r9cZjzU8huNY2JS9TC6n8daDfT8TmE8zBSqG31Wvq" > multi_link_rm_exp && - test_cmp multi_link_rm_out multi_link_rm_exp + test_cmp multi_link_rm_exp multi_link_rm_out ' test_patch_create_path $EMPTY a/b/c $FILE