From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4DDEB1F487 for ; Sun, 26 Nov 2023 02:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1700964666; bh=DlVp7miVR+q/IN5NpaQaKSh/r+Sm6H9W2hPhnpn4kns=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jVZ49eur1e2DeCtMvvfDJVf9Q6eBqpJ6TP9xsKVQzaxjwm5LzCJ3f5xjB1QR+uh71 dfEax34Ufr+4BI4istr+GohIW3rf7cUc51EGYI3/AzXUDe5LfkplObf9fk3KYphWWU jNE045cFKYnKEP0sbtcLlz30/0fzwHmscLXXQ770= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/7] xap_client: pass arguments to top-level xap_helper Date: Sun, 26 Nov 2023 02:11:01 +0000 Message-ID: <20231126021105.408573-4-e@80x24.org> In-Reply-To: <20231126021105.408573-1-e@80x24.org> References: <20231126021105.408573-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This ensures our tests actually test the -j0 and -j1 cases properly. --- lib/PublicInbox/XapClient.pm | 1 + 1 file changed, 1 insertion(+) 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);