Skip to content

Commit 619d7bc

Browse files
committed
t2024: mark a checkout -p test as requiring Perl
A recently-added test case tries to verify that the output of `checkout -p` contains a certain piece of advice. But if Git was built without Perl and therefore lacks support for `git add -i`, the error output contains the hint that `-p` is not even available instead. Let's just skip that test case altogether if Git was built with NO_PERL. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8d7b558 commit 619d7bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t2024-checkout-dwim.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ test_expect_success 'checkout of branch from multiple remotes fails #1' '
7676
test_branch master
7777
'
7878

79-
test_expect_success 'checkout of branch from multiple remotes fails with advice' '
79+
test_expect_success NO_PERL \
80+
'checkout of branch from multiple remotes fails with advice' '
8081
git checkout -B master &&
8182
test_might_fail git branch -D foo &&
8283
test_must_fail git checkout foo 2>stderr &&

0 commit comments

Comments
 (0)