From 0fa19f1a4b6949808c311312e80d9d3a5010cc23 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 7 Mar 2023 09:54:15 +0000 Subject: test_common: run_script: drop special-case for -clone `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 | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/PublicInbox/TestCommon.pm') diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index fe7af452..5807105a 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -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 = {}; -- cgit v1.2.3-24-ge0c7