From 128c2e731d79a97f93af696af1803636046edb65 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 2 Aug 2025 15:56:17 +0200 Subject: [PATCH] runtests.pl merge Env output instructions, only show if non-empty --- tests/runtests.pl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 23379e16d3..f2e2a6fdb0 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -892,11 +892,15 @@ sub checksystemfeatures { $feature{"TrackMemory"} = 0; } - logmsg sprintf("* Env: %s%s%s%s", $valgrind?"Valgrind ":"", - $run_duphandle?"test-duphandle ":"", - $run_event_based?"event-based ":"", - $nghttpx_h3); - logmsg sprintf("%s\n", $libtool?"Libtool ":""); + my $env = sprintf("%s%s%s%s%s", + $valgrind?"Valgrind ":"", + $run_duphandle?"test-duphandle ":"", + $run_event_based?"event-based ":"", + $nghttpx_h3, + $libtool?"Libtool ":""); + if($env) { + logmsg "* Env: $env\n"; + } logmsg "* Seed: $randseed\n"; }