Module: tools Branch: master Commit: cab866b47e1d3127130fb144ecc78a9e68c19a05 URL: https://source.winehq.org/git/tools.git/?a=commit;h=cab866b47e1d3127130fb144...
Author: Francois Gouget fgouget@codeweavers.com Date: Wed May 12 19:19:10 2021 +0200
winetest/build-patterns: Add a message if a page has no failure.
Otherwise the page is very empty and cryptic.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
winetest/build-patterns | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/winetest/build-patterns b/winetest/build-patterns index eb02e88..98290f5 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