Francois Gouget : winetest/build-patterns: Add a message if a page has no failure.
Alexandre Julliard
julliard at winehq.org
Wed May 12 15:40:26 CDT 2021
Module: tools
Branch: master
Commit: cab866b47e1d3127130fb144ecc78a9e68c19a05
URL: https://source.winehq.org/git/tools.git/?a=commit;h=cab866b47e1d3127130fb144ecc78a9e68c19a05
Author: Francois Gouget <fgouget at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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
More information about the wine-cvs
mailing list