Skip to content

Commit 03b9dfb

Browse files
drafnelgitster
authored andcommitted
t3200,t7201: replace '!' with test_must_fail
Signed-off-by: Brandon Casey <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9a885fa commit 03b9dfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

t/t3200-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ test_expect_success \
200200

201201
test_expect_success \
202202
'branch from non-branch HEAD w/--track causes failure' \
203-
'!(git branch --track my10 HEAD^)'
203+
'test_must_fail git branch --track my10 HEAD^'
204204

205205
# Keep this test last, as it changes the current branch
206206
cat >expect <<EOF

t/t7201-co.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,6 @@ test_expect_success \
335335
git checkout -b delete-me master &&
336336
rm .git/refs/heads/delete-me &&
337337
test refs/heads/delete-me = "$(git symbolic-ref HEAD)" &&
338-
!(git checkout --track -b track)'
338+
test_must_fail git checkout --track -b track'
339339

340340
test_done

0 commit comments

Comments
 (0)