From: Viktor Szakats Date: Tue, 17 Sep 2024 16:43:17 +0000 (+0200) Subject: runtests: use deterministic sort for `TESTINFO` lines X-Git-Tag: curl-8_11_0~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53fdc5faf362f481dc5eb3a6c6273648437b9f69;p=thirdparty%2Fcurl.git runtests: use deterministic sort for `TESTINFO` lines Sort TESTINFO lines by description within the number of skipped test. It makes the list of skipped test groups easier to diff/compare between jobs and runs. Closes #15374 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index e2b9c0b9d9..c02655b07e 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3147,7 +3147,7 @@ if(%skipped && !$short) { $log_line .= ")\n"; $restraints{$log_line} = $skip_count; } - foreach my $log_line (sort {$restraints{$b} <=> $restraints{$a}} keys %restraints) { + foreach my $log_line (sort {$restraints{$b} <=> $restraints{$a} || uc($a) cmp uc($b)} keys %restraints) { logmsg $log_line; } }