]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: use deterministic sort for `TESTINFO` lines
authorViktor Szakats <commit@vsz.me>
Tue, 17 Sep 2024 16:43:17 +0000 (18:43 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 23 Oct 2024 08:42:30 +0000 (10:42 +0200)
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

tests/runtests.pl

index e2b9c0b9d9b2f2e2355620a61bb4317918715184..c02655b07e5d20da92ef5e0047d72167051b248d 100755 (executable)
@@ -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;
     }
 }