From 0c4f05c6ee60780365ce7196ab8847f53dc101ce Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 13 Aug 2024 01:11:33 -0700 Subject: [PATCH] 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. --- tests/runtests.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index da30957d4e..dccb8463b7 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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) { -- 2.47.3