]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
xap_client: pass arguments to top-level xap_helper
authorEric Wong <e@80x24.org>
Sun, 26 Nov 2023 02:11:01 +0000 (02:11 +0000)
committerEric Wong <e@80x24.org>
Sun, 26 Nov 2023 19:34:54 +0000 (19:34 +0000)
This ensures our tests actually test the -j0 and -j1 cases
properly.

lib/PublicInbox/XapClient.pm

index 7737e30d5ed28a8e076e9e05b56d4bff68d45d0c..1f9ddcccff665e14650f1961642f70ca53da2f84 100644 (file)
@@ -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);