[tools 1/2] winetest/gather: Simplify the result status to cell label conversion.
Francois Gouget
fgouget at codeweavers.com
Wed Apr 21 09:26:39 CDT 2021
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
winetest/gather | 32 ++++++++++----------------------
1 file changed, 10 insertions(+), 22 deletions(-)
diff --git a/winetest/gather b/winetest/gather
index a3a0a6533..456fa0b5d 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -735,30 +735,18 @@ sub singletest($$$) {
!$result->{errors}->[1] ? $result->{todos}->[1] :
"$result->{errors}->[1]+$result->{todos}->[1]";
}
- elsif ($status eq "dll missing")
- {
- $msg = "n/a";
- }
- elsif ($status eq "filelimit")
- {
- $msg = "truncated";
- }
- elsif ($status eq "missing")
- {
- $msg = "not run";
- }
- elsif ($status eq "skipped")
- {
- $msg = "skipped";
- }
- elsif ($status eq "mixed")
- {
- $msg = "mixed";
- }
else
{
- $msg = $status eq "crash" ? "crashed" :
- $status eq "258" ? "timeout": "failed";
+ my %status2label = (
+ missing => "not run",
+ "dll missing" => "n/a",
+ skipped => "skipped",
+ crash => "crashed",
+ 258 => "timeout",
+ mixed => "mixed",
+ filelimit => "truncated",
+ );
+ $msg = $status2label{$status} || "failed";
}
$title = join(" | ", $prefix, $title);
printf OUT " <td class=\"%s\"><a %s %s>%s</a></td>\n",
--
2.20.1
More information about the wine-devel
mailing list