Skip to content

Commit 8f102d2

Browse files
committedOct 3, 2015
t0051: swap test_cmp arguments
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
1 parent 7e69146 commit 8f102d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎test/sharness/t0051-object.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ test_patch_create_path() {
2020
'
2121

2222
test_expect_success "output looks good" '
23-
ipfs cat $PCOUT/$name > tpcp_out &&
24-
ipfs cat $target > tpcp_exp &&
25-
test_cmp tpcp_out tpcp_exp
23+
ipfs cat "$PCOUT/$name" >tpcp_out &&
24+
ipfs cat "$target" >tpcp_exp &&
25+
test_cmp tpcp_exp tpcp_out
2626
'
2727
}
2828

@@ -161,7 +161,7 @@ test_object_cmd() {
161161
echo DataSize: 2 >> obj_stat_exp &&
162162
echo CumulativeSize: 114 >> obj_stat_exp &&
163163
164-
test_cmp obj_stat_out obj_stat_exp
164+
test_cmp obj_stat_exp obj_stat_out
165165
'
166166

167167
test_expect_success "should have created dir within a dir" '
@@ -188,7 +188,7 @@ test_object_cmd() {
188188

189189
test_expect_success "output looks good" '
190190
echo "QmZD3r9cZjzU8huNY2JS9TC6n8daDfT8TmE8zBSqG31Wvq" > multi_link_rm_exp &&
191-
test_cmp multi_link_rm_out multi_link_rm_exp
191+
test_cmp multi_link_rm_exp multi_link_rm_out
192192
'
193193

194194
test_patch_create_path $EMPTY a/b/c $FILE

0 commit comments

Comments
 (0)
Please sign in to comment.