[tools 2/3] winetest/build-patterns: Add a message if a page has no failure.

Francois Gouget fgouget at codeweavers.com
Wed May 12 12:19:10 CDT 2021


Otherwise the page is very empty and cryptic.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 winetest/build-patterns | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/winetest/build-patterns b/winetest/build-patterns
index aa6d29f62..38bd7c041 100755
--- a/winetest/build-patterns
+++ b/winetest/build-patterns
@@ -1205,16 +1205,18 @@ EOF
     print $html "<h1>$title</h1>\n";
     print $html "<ul>\n";
     my @listids = ("recent", "newmode", "regular", "old");
-    my $prevunit = "";
+    my ($prevunit, $nolist) = ("", 1);
     foreach my $listid (@listids)
     {
         my $list = $lists{$listid};
         my $count = @{$list->{testnames}};
         next if (!$count);
         print $html "<li><a href='#$listid'>$count test units</a> $list->{desc}</li>\n";
+        $nolist = 0;
         $list->{prevunit} = $prevunit;
         $prevunit = $list->{testnames}->[-1];
     }
+    print $html "<p>No failures. Don't change anything!</p>\n" if ($nolist);
     print $html "</ul>\n";
 
     # Link the last test unit of each list to the first one of the next list
-- 
2.20.1




More information about the wine-devel mailing list