Ensure loadscope and loadfile work when the first scope has one work unit

This commit is contained in:
lmtierney
2018-02-08 19:38:18 -06:00
parent d91ec5503e
commit bd3c7dba8b
3 changed files with 69 additions and 0 deletions

View File

@@ -380,6 +380,10 @@ class LoadScopeScheduling:
for node in self.nodes:
self._assign_work_unit(node)
# Ensure nodes start with at least two work units if possible
for node in self.nodes:
self._reschedule(node)
# Initial distribution sent all tests, start node shutdown
if not self.workqueue:
for node in self.nodes: