@cryptotaxi247 / kubo / commits / e499ee447

sharness: swap test_*cmp arguments

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Oct 4, 2015 at 11:38 UTC e499ee447025f7793702a2492101951fb119a6ce
4 files changed +6 -6
test/sharness/t0044-add-symlink.sh
+3 -3
@@ -24,7 +24,7 @@ test_add_symlinks() {
24
25 test_expect_success "output looks good" '
26 echo QmWdiHKoeSW8G1u7ATCgpx4yMoUhYaJBQGkyPLkS9goYZ8 > filehash_exp &&
27 - test_cmp filehash_out filehash_exp
27 + test_cmp filehash_exp filehash_out
28 '
29
30 test_expect_success "adding a symlink adds the link itself" '
@@ -33,7 +33,7 @@ test_add_symlinks() {
33
34 test_expect_success "output looks good" '
35 echo "QmdocmZeF7qwPT9Z8SiVhMSyKA2KKoA2J7jToW6z6WBmxR" > goodlink_exp &&
36 - test_cmp goodlink_out goodlink_exp
36 + test_cmp goodlink_exp goodlink_out
37 '
38
39 test_expect_success "adding a broken symlink works" '
@@ -42,7 +42,7 @@ test_add_symlinks() {
42
43 test_expect_success "output looks good" '
44 echo "QmWYN8SEXCgNT2PSjB6BnxAx6NJQtazWoBkTRH9GRfPFFQ" > badlink_exp &&
45 - test_cmp badlink_out badlink_exp
45 + test_cmp badlink_exp badlink_out
46 '
47 }
48
test/sharness/t0141-addfilter.sh
+1 -1
@@ -27,7 +27,7 @@ test_swarm_filter_cmd() {
27 '
28
29 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
31 '
32 }
33
test/sharness/x0045-add-cat-iptb.sh
+1 -1
@@ -30,7 +30,7 @@ test_expect_success "cat that file on node2" '
30 test_expect_success "verify files match" '
31 multihash filea > expected1 &&
32 multihash fileb > actual1 &&
33 - test_cmp actual1 expected1
33 + test_cmp expected1 actual1
34 '
35
36 test_expect_success "shut down nodes" '
test/sharness/xt0130-multinode.sh
+1 -1
@@ -30,7 +30,7 @@ test_expect_success "cat that file on node2" '
30 test_expect_success "verify files match" '
31 multihash filea > expected1 &&
32 multihash fileb > actual1 &&
33 - test_cmp actual1 expected1
33 + test_cmp expected1 actual1
34 '
35
36 test_expect_success "shut down nodes" '