From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 26AD81F9FF for ; Wed, 10 Feb 2021 07:07:50 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/6] test_common: support lei-daemon only testing Date: Wed, 10 Feb 2021 07:07:46 +0000 Message-Id: <20210210070749.30391-4-e@80x24.org> In-Reply-To: <20210210070749.30391-1-e@80x24.org> References: <20210210070749.30391-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 ++ 1 file changed, 2 insertions(+) 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: $!";