]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/watch_maildir_v2: use run_script for -init
authorEric Wong <e@80x24.org>
Fri, 15 Nov 2019 09:50:54 +0000 (09:50 +0000)
committerEric Wong <e@80x24.org>
Sat, 16 Nov 2019 11:05:23 +0000 (11:05 +0000)
This only gives a small 10% speedup or so, but anything helps.

t/watch_maildir_v2.t

index ccc85c173d078719083e6ef83075841f17817e96..7fe235211a98f46602e72ea6b4be4e64889e2cb3 100644 (file)
@@ -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 = <<EOF;
 From: user\@example.com