Skip to content

Commit e499ee4

Browse files
committedOct 4, 2015
sharness: swap test_*cmp arguments
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
1 parent bf8adc6 commit e499ee4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎test/sharness/t0044-add-symlink.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test_add_symlinks() {
2424

2525
test_expect_success "output looks good" '
2626
echo QmWdiHKoeSW8G1u7ATCgpx4yMoUhYaJBQGkyPLkS9goYZ8 > filehash_exp &&
27-
test_cmp filehash_out filehash_exp
27+
test_cmp filehash_exp filehash_out
2828
'
2929

3030
test_expect_success "adding a symlink adds the link itself" '
@@ -33,7 +33,7 @@ test_add_symlinks() {
3333

3434
test_expect_success "output looks good" '
3535
echo "QmdocmZeF7qwPT9Z8SiVhMSyKA2KKoA2J7jToW6z6WBmxR" > goodlink_exp &&
36-
test_cmp goodlink_out goodlink_exp
36+
test_cmp goodlink_exp goodlink_out
3737
'
3838

3939
test_expect_success "adding a broken symlink works" '
@@ -42,7 +42,7 @@ test_add_symlinks() {
4242

4343
test_expect_success "output looks good" '
4444
echo "QmWYN8SEXCgNT2PSjB6BnxAx6NJQtazWoBkTRH9GRfPFFQ" > badlink_exp &&
45-
test_cmp badlink_out badlink_exp
45+
test_cmp badlink_exp badlink_out
4646
'
4747
}
4848

‎test/sharness/t0141-addfilter.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test_swarm_filter_cmd() {
2727
'
2828

2929
test_expect_success "'ipfs swarm filters' output looks good" '
30-
test_sort_cmp list_actual list_expected
30+
test_sort_cmp list_expected list_actual
3131
'
3232
}
3333

‎test/sharness/x0045-add-cat-iptb.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test_expect_success "cat that file on node2" '
3030
test_expect_success "verify files match" '
3131
multihash filea > expected1 &&
3232
multihash fileb > actual1 &&
33-
test_cmp actual1 expected1
33+
test_cmp expected1 actual1
3434
'
3535

3636
test_expect_success "shut down nodes" '

‎test/sharness/xt0130-multinode.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test_expect_success "cat that file on node2" '
3030
test_expect_success "verify files match" '
3131
multihash filea > expected1 &&
3232
multihash fileb > actual1 &&
33-
test_cmp actual1 expected1
33+
test_cmp expected1 actual1
3434
'
3535

3636
test_expect_success "shut down nodes" '

0 commit comments

Comments
 (0)
Please sign in to comment.