tests: don't mangle output if hostname or type unknown

If either of these couldn't be determined, the output would be missing a
newline. Make sure the line ends even in the case of an error.
This commit is contained in:
Dan Fandrich 2024-08-13 01:11:33 -07:00
parent af73743f86
commit 0c4f05c6ee

View File

@ -835,7 +835,9 @@ sub checksystemfeatures {
}
my $hostname=join(' ', runclientoutput("hostname"));
chomp $hostname;
my $hosttype=join(' ', runclientoutput("uname -a"));
chomp $hosttype;
my $hostos=$^O;
# display summary information about curl and the test host
@ -844,8 +846,8 @@ sub checksystemfeatures {
"* $libcurl\n",
"* Features: $feat\n",
"* Disabled: $dis\n",
"* Host: $hostname",
"* System: $hosttype",
"* Host: $hostname\n",
"* System: $hosttype\n",
"* OS: $hostos\n");
if($jobs) {