about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-28 05:31:00 +0000
committerEric Wong <e@80x24.org>2022-11-28 23:38:53 +0000
commitf6002395d2c62dfac2c6fbbd7e8428bb2467a036 (patch)
tree726dd917231fedbd972b87d4be62546ccdc4c279 /lib/PublicInbox/TestCommon.pm
parent169cb094abc6477cc38cc0eb0e2467a088e4068a (diff)
downloadpublic-inbox-f6002395d2c62dfac2c6fbbd7e8428bb2467a036.tar.gz
This is a first step in supporting completely parallelized
clones.  Eventually, everything will be parallelized and
dependencies will be managed via callbacks.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index e793a001..888c1f1e 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -291,6 +291,7 @@ sub run_script ($;$$) {
         my ($cmd, $env, $opt) = @_;
         my ($key, @argv) = @$cmd;
         my $run_mode = $ENV{TEST_RUN_MODE} // $opt->{run_mode} // 1;
+        $run_mode = 0 if $key eq '-clone'; # relies on SIGCHLD + waitpid(-1)
         my $sub = $run_mode == 0 ? undef : key2sub($key);
         my $fhref = [];
         my $spawn_opt = {};