about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-10 21:50:48 +0000
committerEric Wong <e@80x24.org>2021-02-10 21:51:08 +0000
commit7a1fe192b9f63f057a21cb60c5e0e85b2ca34d50 (patch)
tree2904facf7d5eb565155d45bcac3d68b9ae789abc /lib/PublicInbox/TestCommon.pm
parentefae1c2f67220c18f57bd1ebdf7115abd4d6c6e0 (diff)
downloadpublic-inbox-7a1fe192b9f63f057a21cb60c5e0e85b2ca34d50.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm2
1 files changed, 1 insertions, 1 deletions
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};