Skip to content

Commit d5bb92e

Browse files
newrengitster
authored andcommitted
t3035: prefer test_must_fail to bash negation for git commands
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b821ca7 commit d5bb92e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t3035-merge-sparse.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test_expect_success 'setup' '
2828
git config core.sparseCheckout true &&
2929
echo "/checked-out" >.git/info/sparse-checkout &&
3030
git reset --hard &&
31-
! git merge theirs
31+
test_must_fail git merge theirs
3232
'
3333

3434
test_expect_success 'reset --hard works after the conflict' '
@@ -42,7 +42,7 @@ test_expect_success 'is reset properly' '
4242
'
4343

4444
test_expect_success 'setup: conflict back' '
45-
! git merge theirs
45+
test_must_fail git merge theirs
4646
'
4747

4848
test_expect_success 'Merge abort works after the conflict' '

0 commit comments

Comments
 (0)