t2024: mark test using "checkout -p" with PERL prerequisite
Checkout with the -p switch uses the "add interactive" framework which is written in Perl. One test added in 8d7b558bae ("checkout & worktree: introduce checkout.defaultRemote", 2018-06-05) didn't declare the PERL prerequisite, breaking the test when built with NO_PERL. Reported-by: CB Bailey <cb@hashpling.org> Signed-off-by: CB Bailey <cb@hashpling.org> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Aug 18, 2018 at 07:01 UTC
3338e9950e353ffd2033aae25952eb3f88c315e1
1 file changed
+7
-2
t/t2024-checkout-dwim.sh
+7
-2
@@ -87,8 +87,13 @@ test_expect_success 'checkout of branch from multiple remotes fails with advice'
87
checkout foo 2>stderr &&
88
test_branch master &&
89
status_uno_is_clean &&
90
- test_i18ngrep ! "^hint: " stderr &&
91
- # Make sure the likes of checkout -p do not print this hint
90
+ test_i18ngrep ! "^hint: " stderr
91
+'
92
+
93
+test_expect_success PERL 'checkout -p with multiple remotes does not print advice' '
94
+ git checkout -B master &&
95
+ test_might_fail git branch -D foo &&
96
+
97
git checkout -p foo 2>stderr &&
98
test_i18ngrep ! "^hint: " stderr &&
99
status_uno_is_clean