Reset host status to READY on aborting a WAITING entry

Signed-off-by: James Ren <[email protected]>

--- autotest/scheduler/scheduler_models.py      2010-04-09 13:16:28.000000000 
-0700
+++ autotest/scheduler/scheduler_models.py      2010-04-09 13:16:28.000000000 
-0700
@@ -710,7 +710,8 @@
             # with status "Aborted" and take care of the host
             return
 
-        if self.status in (Status.STARTING, Status.PENDING, Status.RUNNING):
+        if self.status in (Status.STARTING, Status.PENDING, Status.RUNNING,
+                           Status.WAITING):
             assert not dispatcher.get_agents_for_entry(self)
             self.host.set_status(models.Host.Status.READY)
         elif self.status == Status.VERIFYING:
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to