mirror of
https://github.com/curl/curl.git
synced 2026-06-26 23:15:37 +03:00
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:
parent
af73743f86
commit
0c4f05c6ee
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue