[PATCH 2/3] testbot/WineRunTask: Preserve the old WineTest report in case of timeout.

Francois Gouget fgouget at codeweavers.com
Thu Jun 21 07:32:23 CDT 2018


If the task timed out the new report is likely quite incomplete and thus
would be a poor substitute for the existing reference WineTest report.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/bin/WineRunTask.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl
index ed190348b..7f92b8858 100755
--- a/testbot/bin/WineRunTask.pl
+++ b/testbot/bin/WineRunTask.pl
@@ -289,7 +289,7 @@ sub WrapUpAndExit($;$$$)
     $VM->Save();
   }
 
-  if ($Status eq 'completed' and $Step->Type eq 'suite')
+  if ($Step->Type eq 'suite' and $Status eq 'completed' and !$TimedOut)
   {
     # Keep the old report if the new one is missing
     if (-f "$TaskDir/log" and !-z "$TaskDir/log")
-- 
2.17.1




More information about the wine-devel mailing list