t0051: swap test_cmp arguments
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Oct 3, 2015 at 23:26 UTC
8f102d2cbdedd4238f61628c69ff99e1bdc828bd
1 file changed
+5
-5
test/sharness/t0051-object.sh
+5
-5
@@ -20,9 +20,9 @@ test_patch_create_path() {
20
'
21
22
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
26
'
27
}
28
@@ -161,7 +161,7 @@ test_object_cmd() {
161
echo DataSize: 2 >> obj_stat_exp &&
162
echo CumulativeSize: 114 >> obj_stat_exp &&
163
164
- test_cmp obj_stat_out obj_stat_exp
164
+ test_cmp obj_stat_exp obj_stat_out
165
'
166
167
test_expect_success "should have created dir within a dir" '
@@ -188,7 +188,7 @@ test_object_cmd() {
188
189
test_expect_success "output looks good" '
190
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
192
'
193
194
test_patch_create_path $EMPTY a/b/c $FILE