From 7a1fe192b9f63f057a21cb60c5e0e85b2ca34d50 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 10 Feb 2021 21:50:48 +0000 Subject: tests: skip properly with git <2.6 Tested with git 1.8.3.1 on CentOS 7.x `plan skip_all => ...' doesn't work after some tests have run, we have to call skip() instead. --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/TestCommon.pm') diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index f5b3fae4..d6b7d20e 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -476,7 +476,7 @@ sub test_lei { SKIP: { my ($cb) = pop @_; my $test_opt = shift // {}; - require_git(2.6) or skip('git 2.6+ required for lei test', 2); + require_git(2.6, 1) or skip('git 2.6+ required for lei test', 2); require_mods(qw(json DBD::SQLite Search::Xapian), 2); require PublicInbox::Config; delete local $ENV{XDG_DATA_HOME}; -- cgit v1.2.3-24-ge0c7