]> Sergey Matveev's repositories - public-inbox.git/commitdiff
test_common: support lei-daemon only testing
authorEric Wong <e@80x24.org>
Wed, 10 Feb 2021 07:07:46 +0000 (07:07 +0000)
committerEric Wong <e@80x24.org>
Wed, 10 Feb 2021 19:21:35 +0000 (19:21 +0000)
Daemon-only tests can be significantly faster due to cached
configs; so give developers a chance to test only daemons to
improve productivity.

The differences between daemon and oneshot modes are minimal,
at this point.

lib/PublicInbox/TestCommon.pm

index 63d45ac396bd31c8da6d694748e5092fe317cd3f..64fe04996d7dd35ab2e6d625aeca0942500b98bd 100644 (file)
@@ -506,6 +506,8 @@ EOM
                }
        }; # SKIP for lei_daemon
        unless ($test_opt->{daemon_only}) {
+               $ENV{TEST_LEI_DAEMON_ONLY} and
+                       skip 'TEST_LEI_DAEMON_ONLY set', 1;
                require_ok 'PublicInbox::LEI';
                my $home = "$tmpdir/lei-oneshot";
                mkdir($home, 0700) or BAIL_OUT "mkdir: $!";