runtests: strip EOL on precheck output on Windows, too

Precheck failures would show on two lines in the test summary output
otherwise.
This commit is contained in:
Dan Fandrich 2023-03-31 14:23:46 -07:00
parent 70d2fca2f6
commit 419a745da6

View File

@ -3791,7 +3791,7 @@ sub singletest_precheck {
my @o = `$cmd 2> $LOGDIR/precheck-$testnum`;
if($o[0]) {
$why = $o[0];
chomp $why;
$why =~ s/[\r\n]//g;
}
elsif($?) {
$why = "precheck command error";