]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test: rev-parse-upstream: add missing cmp
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 9 May 2023 00:02:46 +0000 (18:02 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 May 2023 16:25:53 +0000 (09:25 -0700)
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>
t/t1507-rev-parse-upstream.sh

index 4458820168b5fcd42a36841dbd2f54903740eebe..443145c684cdc9c4cc45231b218725423bfae063 100755 (executable)
@@ -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' '