]> Sergey Matveev's repositories - public-inbox.git/commitdiff
test_common: only print $@ for Gcf2 failure
authorEric Wong <e@80x24.org>
Sun, 12 Sep 2021 08:42:19 +0000 (08:42 +0000)
committerEric Wong <e@80x24.org>
Sun, 12 Sep 2021 08:46:27 +0000 (08:46 +0000)
Other missing dependencies are more straightforward, but
Gcf2 requires a combination of libgit2-dev, pkg-config,
Inline::C, and proper setup.

This significantly reduces noise in tests with a minimal
set of dependencies installed.

lib/PublicInbox/TestCommon.pm

index d28b32b07571f5ac28778d2dcd60fa36266c50f6..628beaf1315f111f1fa897f5afc29f975eb32c0b 100644 (file)
@@ -144,7 +144,7 @@ sub require_mods {
                        eval "require $mod";
                }
                if ($@) {
-                       diag "require $mod: $@";
+                       diag "require $mod: $@" if $mod =~ /Gcf2/;
                        push @need, $mod;
                } elsif ($mod eq 'IO::Socket::SSL' &&
                        # old versions of IO::Socket::SSL aren't supported