From: Eric Wong Date: Wed, 10 Feb 2021 07:07:46 +0000 (+0000) Subject: test_common: support lei-daemon only testing X-Git-Tag: v1.7.0~1138 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=dcc0322ec3ec03e25a1ff9c3a8dda710712fcc82;p=public-inbox.git test_common: support lei-daemon only testing 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. --- diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 63d45ac3..64fe0499 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -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: $!";