diff options
author | Eric Wong <e@80x24.org> | 2021-09-14 02:39:03 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-14 02:56:53 +0000 |
commit | b9173c86876b74eb844441c94139cd623c58bda4 (patch) | |
tree | 65ba747f0c1d242c2270b9f7a621ade6b12c5fec /t/run.perl | |
parent | 98f847cf7cab205b5d2dbf9e58d86af2a1c190e5 (diff) | |
download | public-inbox-b9173c86876b74eb844441c94139cd623c58bda4.tar.gz |
While persisting lei-daemon across different test cases isn't the default anymore, we can notice problems more quickly if the daemon PID changes since the daemon gets auto-restarted after failures.
Diffstat (limited to 't/run.perl')
-rwxr-xr-x | t/run.perl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -254,5 +254,8 @@ for (my $i = $repeat; $i != 0; $i--) { print $OLDOUT "1..".($repeat * scalar(@tests))."\n" if $repeat >= 0; if ($lei_env && $$ == $owner_pid) { my $opt = { 1 => $OLDOUT, 2 => $OLDERR }; + my $cur_daemon_pid; + run_script([qw(lei daemon-pid)], $lei_env, { 1 => \$cur_daemon_pid }); run_script([qw(lei daemon-kill)], $lei_env, $opt); + DIE "lei daemon restarted\n" if $cur_daemon_pid != $lei_daemon_pid; } |