aboutsummaryrefslogtreecommitdiff
path: root/t/t6013-rev-list-reverse-parents.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-10-06 12:00:06 -0700
committerJunio C Hamano <gitster@pobox.com>2017-10-07 10:56:08 +0900
commit9c5b2fab304b5ce3233401c7c7e7a123d551c484 (patch)
treee53aea6a3b052ed63bd417d6019bf273439f5d7f /t/t6013-rev-list-reverse-parents.sh
parent217f2767cbcb562872437eed4dec62e00846d90c (diff)
downloadgit-9c5b2fab304b5ce3233401c7c7e7a123d551c484.tar.gz
git-9c5b2fab304b5ce3233401c7c7e7a123d551c484.tar.xz
tests: fix diff order arguments in test_cmp
Fix the argument order for test_cmp. When given the expected result first the diff shows the actual output with '+' and the expectation with '-', which is the convention for our tests. Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6013-rev-list-reverse-parents.sh')
-rwxr-xr-xt/t6013-rev-list-reverse-parents.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t6013-rev-list-reverse-parents.sh b/t/t6013-rev-list-reverse-parents.sh
index 59fc2f06e..89458d370 100755
--- a/t/t6013-rev-list-reverse-parents.sh
+++ b/t/t6013-rev-list-reverse-parents.sh
@@ -28,7 +28,7 @@ test_expect_success '--reverse --parents --full-history combines correctly' '
perl -e "print reverse <>" > expected &&
git rev-list --reverse --parents --full-history master -- foo \
> actual &&
- test_cmp actual expected
+ test_cmp expected actual
'
test_expect_success '--boundary does too' '
@@ -36,7 +36,7 @@ test_expect_success '--boundary does too' '
perl -e "print reverse <>" > expected &&
git rev-list --boundary --reverse --parents --full-history \
master ^root -- foo > actual &&
- test_cmp actual expected
+ test_cmp expected actual
'
test_done