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 794761F5C3 for ; Fri, 15 Nov 2019 09:51:05 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 25/29] t/watch_filter_rubylang: run_script for -init and -index Date: Fri, 15 Nov 2019 09:50:56 +0000 Message-Id: <20191115095100.25633-26-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 nets us a 20% speedup or so. --- t/watch_filter_rubylang.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/watch_filter_rubylang.t b/t/watch_filter_rubylang.t index 4b88d670..57ab3b91 100644 --- a/t/watch_filter_rubylang.t +++ b/t/watch_filter_rubylang.t @@ -36,11 +36,11 @@ for my $v (@v) { my $maildir = "$tmpdir/md-$v"; my $spamdir = "$tmpdir/spam-$v"; my $addr = "test-$v\@example.com"; - my @cmd = ('blib/script/public-inbox-init', "-$v", $v, $inboxdir, + my @cmd = ('-init', "-$v", $v, $inboxdir, "http://example.com/$v", $addr); - is(system(@cmd), 0, 'public-inbox init OK'); + ok(run_script(\@cmd), 'public-inbox init OK'); if ($v eq 'V1') { - is(system('blib/script/public-inbox-index', $inboxdir), 0); + ok(run_script(['-index', $inboxdir]), 'v1 indexed'); } PublicInbox::Emergency->new($spamdir);