[PATCH] testbot: Only send an email when a job is really done.

Francois Gouget fgouget at codeweavers.com
Fri Aug 10 13:11:20 CDT 2018


In particular don't send a report if it is requeued or was canceled.

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

diff --git a/testbot/bin/Engine.pl b/testbot/bin/Engine.pl
index 464b6db45..4478d479b 100755
--- a/testbot/bin/Engine.pl
+++ b/testbot/bin/Engine.pl
@@ -307,7 +307,7 @@ sub HandleJobStatusChange($$$)
     LogMsg "Invalid JobKey $JobKey in jobstatuschange message\n";
   }
 
-  if ($OldStatus eq "running" && $NewStatus ne "running")
+  if ($OldStatus eq "running" and $NewStatus !~ /^(?:canceled|queued|running)$/)
   {
     my $Pid = fork;
     if (!defined $Pid)
-- 
2.18.0




More information about the wine-devel mailing list