From 419a745da65df65ed68b4c141a72b222d37c8e32 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 31 Mar 2023 14:23:46 -0700 Subject: [PATCH] runtests: strip EOL on precheck output on Windows, too Precheck failures would show on two lines in the test summary output otherwise. --- tests/runtests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 25a96c6e6a..487cc0d39d 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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"; -- 2.47.2