From b3a13a6f051202caaa4b71cc8dc3510544b8d05c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Nov 2023 02:11:01 +0000 Subject: xap_client: pass arguments to top-level xap_helper This ensures our tests actually test the -j0 and -j1 cases properly. --- lib/PublicInbox/XapClient.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/XapClient.pm b/lib/PublicInbox/XapClient.pm index 7737e30d..1f9ddccc 100644 --- a/lib/PublicInbox/XapClient.pm +++ b/lib/PublicInbox/XapClient.pm @@ -40,6 +40,7 @@ sub start_helper { $cmd = [$^X, ($^W ? ('-w') : ()), "-M$cls", '-e', $cls.'::start(@ARGV)', '--' ]; } + push @$cmd, @argv; my $pid = spawn($cmd, $env, { 0 => $in }); my $self = bless { io => $sock, impl => $cls }, __PACKAGE__; PublicInbox::IO::attach_pid($sock, $pid); -- cgit v1.2.3-24-ge0c7