Skip to content

Commit 0813dd2

Browse files
Denton-Lgitster
authored andcommitted
t5612: don't use test_must_fail test_cmp
The test_must_fail function should only be used for git commands since we should assume that external commands work sanely. Since test_cmp() just wraps an external command, replace `test_must_fail test_cmp` with `! test_cmp`. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 85db348 commit 0813dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5612-clone-refspec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ test_expect_success 'by default no tags will be kept updated' '
8787
git for-each-ref refs/tags >../actual
8888
) &&
8989
git for-each-ref refs/tags >expect &&
90-
test_must_fail test_cmp expect actual &&
90+
! test_cmp expect actual &&
9191
test_line_count = 2 actual
9292
'
9393

0 commit comments

Comments
 (0)