From: Dan Fandrich Date: Fri, 31 Mar 2023 21:23:46 +0000 (-0700) Subject: runtests: strip EOL on precheck output on Windows, too X-Git-Tag: curl-8_1_0~225 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=419a745da65df65ed68b4c141a72b222d37c8e32;p=thirdparty%2Fcurl.git runtests: strip EOL on precheck output on Windows, too Precheck failures would show on two lines in the test summary output otherwise. --- 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";