Skip to content

Commit e8a5f07

Browse files
Denton-Lgitster
authored andcommitted
t7508: don't use test_must_fail test_cmp
The test_must_fail function should only be used for git commands since we 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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4cf795b commit e8a5f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7508-status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ test_expect_success '"status.branch=true" same as "-b"' '
14711471
test_expect_success '"status.branch=true" different from "--no-branch"' '
14721472
git status -s --no-branch >expected_nobranch &&
14731473
git -c status.branch=true status -s >actual &&
1474-
test_must_fail test_cmp expected_nobranch actual
1474+
! test_cmp expected_nobranch actual
14751475
'
14761476

14771477
test_expect_success '"status.branch=true" weaker than "--no-branch"' '

0 commit comments

Comments
 (0)