make rsyncing work again, some streamlining in termination detection

This commit is contained in:
holger krekel
2010-09-27 16:13:55 +02:00
parent 2efb059d75
commit c90c4a254c
3 changed files with 71 additions and 55 deletions

View File

@@ -37,11 +37,11 @@ class TestLoadScheduling:
sched.addnode(node1)
sched.addnode(node2)
collection = ["a.py::test_1", "a.py::test_2"]
assert not sched.collection_is_completed()
assert not sched.collection_is_completed
sched.addnode_collection(node1, collection)
assert not sched.collection_is_completed()
assert not sched.collection_is_completed
sched.addnode_collection(node2, collection)
assert sched.collection_is_completed()
assert sched.collection_is_completed
assert sched.node2collection[node1] == collection
assert sched.node2collection[node2] == collection
sched.init_distribute()
@@ -87,12 +87,12 @@ class TestLoadScheduling:
sched.addnode(node)
collection = ["test_file.py::test_func"]
sched.addnode_collection(node, collection)
assert sched.collection_is_completed()
assert sched.collection_is_completed
sched.init_distribute()
sched.triggertesting()
assert not sched.pending
sched.remove_node(node)
assert sched.pending == collection
crashitem = sched.remove_node(node)
assert crashitem == collection[0]
class TestDSession: