]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: silence nghttpx errors
authorDaniel Stenberg <daniel@haxx.se>
Tue, 6 Dec 2022 16:26:13 +0000 (17:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 8 Dec 2022 10:02:11 +0000 (11:02 +0100)
Also, move the output of the nghttpx_h3 info to the general "Env:" line
in the test output header.

Reported-by: Marcel Raad
Ref: https://github.com/curl/curl/commit/ca15b7512e8d1199e55fbaa206ef01e64b8f147d#commitcomment-92015094
Closes #10044

tests/runtests.pl

index b40b21d728144a3f51f9794f6f6758e5fe4385ec..c6a739eca10a7278251ec7e5acf1ae73c09df0f9 100755 (executable)
@@ -459,7 +459,7 @@ if (!$ENV{"NGHTTPX"}) {
 if ($ENV{"NGHTTPX"}) {
     my $nghttpx_version=join(' ', runclientoutput("$ENV{'NGHTTPX'} -v"));
     $nghttpx_h3 = $nghttpx_version =~ /nghttp3\//;
-    logmsg "nghttpx_h3=$nghttpx_h3, output=$nghttpx_version\n";
+    chomp $nghttpx_h3;
 }
 
 
@@ -663,7 +663,7 @@ sub runclient {
 #
 sub runclientoutput {
     my ($cmd)=@_;
-    return `$cmd`;
+    return `$cmd 2>/dev/null`;
 
 # This is one way to test curl on a remote machine
 #    my @out = `ssh $CLIENTIP cd \'$pwd\' \\; \'$cmd\'`;
@@ -3458,8 +3458,9 @@ sub checksystem {
     logmsg sprintf("%s", $http_unix?"HTTP-unix ":"");
     logmsg sprintf("%s\n", $ftp_ipv6?"FTP-IPv6 ":"");
 
-    logmsg sprintf("* Env: %s%s", $valgrind?"Valgrind ":"",
-                   $run_event_based?"event-based ":"");
+    logmsg sprintf("* Env: %s%s%s", $valgrind?"Valgrind ":"",
+                   $run_event_based?"event-based ":"",
+                   $nghttpx_h3);
     logmsg sprintf("%s\n", $libtool?"Libtool ":"");
     logmsg ("* Seed: $randseed\n");