Add implementation for the Planner global support. Also add unit tests
for the execution engine.
Caveat: the global support is still single-threaded with the execution
engine. I have an idea of how to make it multi-threaded, but I'd like to
push this simpler prototype out first.
Signed-off-by: James Ren <jamesren@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4388 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/planner/rpc_utils.py b/frontend/planner/rpc_utils.py
index 79a6dcc..faaa91e 100644
--- a/frontend/planner/rpc_utils.py
+++ b/frontend/planner/rpc_utils.py
@@ -111,8 +111,8 @@
afe_job_ids = afe_jobs.values_list('afe_job', flat=True)
hqes = afe_models.HostQueueEntry.objects.filter(job__id__in=afe_job_ids,
host=host.host)
- if not hqes:
- return test_config.id
+ if not hqes and not bool(test_config.skipped_hosts.filter(host=host)):
+ return test_config
for hqe in hqes:
if not hqe.complete:
# HostQueueEntry still active for this host,