about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-12 12:25:24 +0000
committerEric Wong <e@80x24.org>2023-09-12 20:57:48 +0000
commitbdcfcf5deb1411b244b6f9a7d842c0ec14544297 (patch)
treea577dbc4d1789f657f0831a14dee7cb8ef35da3f /lib/PublicInbox/TestCommon.pm
parent193783ca8247489877c1629b7685bae66ddb80d5 (diff)
downloadpublic-inbox-bdcfcf5deb1411b244b6f9a7d842c0ec14544297.tar.gz
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index b1a37ced..a8323e4d 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -105,7 +105,8 @@ sub require_cmd ($;$) {
         my $bin = $CACHE{$cmd} //= PublicInbox::Spawn::which($cmd);
         return $bin if $bin;
         return plan(skip_all => "$cmd missing from PATH for $0") if !$nr;
-        defined(wantarray) ? undef : skip("$cmd missing, skipping $nr tests")
+        defined(wantarray) ? undef :
+                skip("$cmd missing, skipping $nr tests", $nr);
 }
 
 sub have_xapian_compact (;$) {