[PATCH] testbot: Add a history record when a child process died.

Francois Gouget fgouget at codeweavers.com
Wed Dec 27 05:14:49 CST 2017


The Job scheduler may notice that a VM's child process died. In such a
case add a history record so the VM's previous status record can be
anotated appropriately.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/WineTestBot/Jobs.pm  | 1 +
 testbot/lib/WineTestBot/Tasks.pm | 1 +
 2 files changed, 2 insertions(+)

diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index a2427cc9..4ed6e03f 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -519,6 +519,7 @@ sub ScheduleOnHost($$$$)
     {
       if (!$VM->HasRunningChild())
       {
+        $VM->RecordResult($Records, "boterror process died");
         my $ErrMessage = $VM->RunMonitor();
         return $ErrMessage if (defined $ErrMessage);
       }
diff --git a/testbot/lib/WineTestBot/Tasks.pm b/testbot/lib/WineTestBot/Tasks.pm
index 11f087f1..1f91d266 100644
--- a/testbot/lib/WineTestBot/Tasks.pm
+++ b/testbot/lib/WineTestBot/Tasks.pm
@@ -179,6 +179,7 @@ sub UpdateStatus($$)
       $VM->Status('dirty');
       $VM->ChildPid(undef);
       $VM->Save();
+      $VM->RecordResult(undef, "boterror process died");
     }
     # else it looks like this is not our VM anymore
 
-- 
2.15.1



More information about the wine-devel mailing list