Module: tools Branch: master Commit: 70987e5b99ea27e4871e921084d03a3600412909 URL: https://source.winehq.org/git/tools.git/?a=commit;h=70987e5b99ea27e4871e9210...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Apr 8 12:23:22 2021 +0200
winetest/gather: Avoid a variable name collision for the header rows.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
winetest/gather | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/winetest/gather b/winetest/gather index a0b259b..7c4984c 100755 --- a/winetest/gather +++ b/winetest/gather @@ -505,7 +505,7 @@ sub build_header_footer($) my ($reports)=@_;
my $unit_count=scalar(keys %alltests); - my ($title, $stats); + my ($title_row, $stats_row); foreach my $rep (@{$reports}) { my $report=$rep; my $msg; @@ -529,7 +529,7 @@ sub build_header_footer($) EOF chop $msg; } - $title .= <<"EOF"; + $title_row .= <<"EOF"; <th class="sticky"> $msg </th> @@ -550,31 +550,31 @@ EOF my $title = "$unit_count unit tests, $report->{errors} have errors"; $title .= ", $report->{todos} have todos" if $report->{todos};
- $stats .= " <th class="result $class"><a title="$title">$count<br>$prcnt%</a></th>\n"; + $stats_row .= " <th class="result $class"><a title="$title">$count<br>$prcnt%</a></th>\n"; } - chop $title; - chop $stats; + chop $title_row; + chop $stats_row; return <<"EOF"; <thead> <tr> <th class="test sticky" colspan="2">platforms</th> -$title +$title_row </tr> <tr> <th class="test" colspan="2">errors</th> -$stats +$stats_row <th class="test"></th> </tr> </thead> <tfoot> <tr> <th class="test" colspan="2">errors</th> -$stats +$stats_row <th class="test"></th> </tr> <tr> <th class="test" colspan="2">platforms</th> -$title +$title_row </tr> </tfoot> EOF