[PATCH] testbot: All but a few winediag messages are errors.
Francois Gouget
fgouget at codeweavers.com
Fri Nov 8 03:53:37 CST 2019
Only a few winediag messages may legitimately occur when running the
tests. The presence of other winediag messages indicates an error.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/WineTestBot/LogUtils.pm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index acb87a42e..019e3c6cd 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -167,7 +167,19 @@ sub GetLogLineCategory($)
}
if ($Line =~ /:winediag:/)
{
- return "diag";
+ if (# Normally CorIsLatestSvc() would not be called but mscoree:mscoree
+ # calls it as a test.
+ $Line =~ /CorIsLatestSvc If this function is called,/ or
+ # VMs and most test machines don't have a midi port.
+ $Line =~ /No software synthesizer midi port found / or
+ # Most VMs have limited OpenGL support.
+ $Line =~ /None of the requested D3D feature levels is supported / or
+ # The tests are not run as root.
+ $Line =~ /this requires special permissions/)
+ {
+ return "diag";
+ }
+ return "error";
}
if (# TestBot script error messages
$Line =~ /^[a-zA-Z.]+:error: / or
--
2.20.1
More information about the wine-devel
mailing list