]> Sergey Matveev's repositories - public-inbox.git/commitdiff
tests: support require_mods 'v2'
authorEric Wong <e@80x24.org>
Thu, 11 Aug 2022 22:33:05 +0000 (22:33 +0000)
committerEric Wong <e@80x24.org>
Thu, 11 Aug 2022 22:39:53 +0000 (22:39 +0000)
This fixes t/v2index-late-dupe.t to be skipped properly on
systems without DBD::SQLite

lib/PublicInbox/TestCommon.pm

index ecf7a261b6f485447dce78ca6f10fd74660f4201..04adede054e30a9005286495a7c941c54c78fc5f 100644 (file)
@@ -136,7 +136,7 @@ sub require_mods {
                        push @mods, qw(Parse::RecDescent DBD::SQLite
                                        Email::Address::XS||Mail::Address);
                        next;
-               } elsif ($mod eq '-nntpd') {
+               } elsif ($mod eq '-nntpd' || $mod eq 'v2') {
                        push @mods, qw(DBD::SQLite);
                        next;
                }