]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
test_common: run_script: drop special-case for -clone
authorEric Wong <e@80x24.org>
Tue, 7 Mar 2023 09:54:15 +0000 (09:54 +0000)
committerEric Wong <e@80x24.org>
Tue, 7 Mar 2023 19:12:35 +0000 (19:12 +0000)
`make check' and `make check-run' actually work fine with it,
and TMPDIR=/dev/shm prove -lvw t/clone-coderepo.t is 2-3x faster

lib/PublicInbox/TestCommon.pm

index fe7af452eec67a5336f33f1f4aeb5823a05e4496..5807105aeafe4078cf362268554f01383175595f 100644 (file)
@@ -295,7 +295,6 @@ 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 = {};