]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: strip EOL on precheck output on Windows, too
authorDan Fandrich <dan@coneharvesters.com>
Fri, 31 Mar 2023 21:23:46 +0000 (14:23 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 1 Apr 2023 06:08:00 +0000 (23:08 -0700)
Precheck failures would show on two lines in the test summary output
otherwise.

tests/runtests.pl

index 25a96c6e6ac17f6d6a5edf8897738a0a4199b2f0..487cc0d39d097f14494e623e5f3a7af03846595f 100755 (executable)
@@ -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";