about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-15 09:50:55 +0000
committerEric Wong <e@80x24.org>2019-11-16 11:05:23 +0000
commit0e667290e43b516c768395e691bc5f979f8247d2 (patch)
tree8406995d593b0513d639431f8d4152fa6ac74e54 /t
parent4a24d9537f5c73ea8b1b93a4b131926db38435d8 (diff)
downloadpublic-inbox-0e667290e43b516c768395e691bc5f979f8247d2.tar.gz
This only gives a 5% speedup or so, but anything helps.
Diffstat (limited to 't')
-rw-r--r--t/nntpd.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/nntpd.t b/t/nntpd.t
index 462e2da9..b516ffd1 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -30,7 +30,6 @@ my $inboxdir = "$tmpdir/main.git";
 my $group = 'test-nntpd';
 my $addr = $group . '@example.com';
 my $nntpd = 'blib/script/public-inbox-nntpd';
-my $init = 'blib/script/public-inbox-init';
 SKIP: {
         skip "git 2.6+ required for V2Writable", 1 if $version == 1;
         use_ok 'PublicInbox::V2Writable';
@@ -52,9 +51,9 @@ my $ibx = {
 $ibx = PublicInbox::Inbox->new($ibx);
 {
         local $ENV{HOME} = $home;
-        my @cmd = ($init, $group, $inboxdir, 'http://example.com/', $addr);
+        my @cmd = ('-init', $group, $inboxdir, 'http://example.com/', $addr);
         push @cmd, "-V$version", '-Lbasic';
-        is(system(@cmd), 0, 'init OK');
+        ok(run_script(\@cmd), 'init OK');
         is(system(qw(git config), "--file=$home/.public-inbox/config",
                         "publicinbox.$group.newsgroup", $group),
                 0, 'enabled newsgroup');