From: Francois Gouget Subject: [PATCH 2/3] testbot/WineRunTask: Preserve the old WineTest report in case of timeout. Message-Id: <12a465bda9e3dda645fb59302ab4615703914da5.1529584160.git.fgouget@codeweavers.com> Date: Thu, 21 Jun 2018 14:32:23 +0200 (CEST) In-Reply-To: <1682b24bbbcd7764cab1427621054ed27b6c29ee.1529584160.git.fgouget@codeweavers.com> References: <1682b24bbbcd7764cab1427621054ed27b6c29ee.1529584160.git.fgouget@codeweavers.com> 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 --- 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