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-ASN: 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 1C6DA1F5C1 for ; Fri, 15 Nov 2019 09:51:05 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 23/29] t/watch_maildir_v2: use run_script for -init Date: Fri, 15 Nov 2019 09:50:54 +0000 Message-Id: <20191115095100.25633-24-e@80x24.org> In-Reply-To: <20191115095100.25633-1-e@80x24.org> References: <20191115095100.25633-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This only gives a small 10% speedup or so, but anything helps. --- t/watch_maildir_v2.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/watch_maildir_v2.t b/t/watch_maildir_v2.t index ccc85c17..7fe23521 100644 --- a/t/watch_maildir_v2.t +++ b/t/watch_maildir_v2.t @@ -21,10 +21,10 @@ use_ok 'PublicInbox::WatchMaildir'; use_ok 'PublicInbox::Emergency'; my $cfgpfx = "publicinbox.test"; my $addr = 'test-public@example.com'; -my @cmd = ('blib/script/public-inbox-init', '-V2', 'test', $inboxdir, +my @cmd = ('-init', '-V2', 'test', $inboxdir, 'http://example.com/v2list', $addr); local $ENV{PI_CONFIG} = "$tmpdir/pi_config"; -is(system(@cmd), 0, 'public-inbox init OK'); +ok(run_script(\@cmd), 'public-inbox init OK'); my $msg = <