summaryrefslogtreecommitdiff
path: root/t/t1507-rev-parse-upstream.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2023-05-08 18:02:46 -0600
committerJunio C Hamano <gitster@pobox.com>2023-05-09 09:25:53 -0700
commit159f4b9c3b9ccc0beb3a118ae752d61e9fffb681 (patch)
tree76b242e9e54518d39fbbd5dd73be36e368333045 /t/t1507-rev-parse-upstream.sh
parenta93cbe8d78a42bb016f62b755421bdd4fd7d5d14 (diff)
downloadgit-159f4b9c3b9ccc0beb3a118ae752d61e9fffb681.tar.gz
test: rev-parse-upstream: add missing cmp
It seems pretty clear 5236fce6b4 (t1507: stop losing return codes of git commands, 2019-12-20) missed a test_cmp. Cc: Denton Liu <liu.denton@gmail.com> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1507-rev-parse-upstream.sh')
-rwxr-xr-xt/t1507-rev-parse-upstream.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t1507-rev-parse-upstream.sh b/t/t1507-rev-parse-upstream.sh
index 4458820168..443145c684 100755
--- a/t/t1507-rev-parse-upstream.sh
+++ b/t/t1507-rev-parse-upstream.sh
@@ -97,7 +97,8 @@ test_expect_success 'my-side@{u} resolves to correct commit' '
commit_subject my-side >actual &&
test_cmp expect actual &&
echo 5 >expect &&
- commit_subject my-side@{u} >actual
+ commit_subject my-side@{u} >actual &&
+ test_cmp expect actual
'
test_expect_success 'not-tracking@{u} fails' '