- add changelog entry for restart-crashed-nodes
- fix a test which depended on dict ordering - minor test cleanups
This commit is contained in:
@@ -9,6 +9,11 @@
|
|||||||
pre-maturely (fixture teardown/setup is "nextitem" sensitive).
|
pre-maturely (fixture teardown/setup is "nextitem" sensitive).
|
||||||
Thanks to Andreas Pelme for bug analysis and failing test.
|
Thanks to Andreas Pelme for bug analysis and failing test.
|
||||||
|
|
||||||
|
- restart crashed nodes by internally refactoring setup handling
|
||||||
|
of nodes. Also includes better code documentation.
|
||||||
|
Many thanks to Floris Bruynooghe for the complete PR.
|
||||||
|
|
||||||
|
|
||||||
1.10
|
1.10
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ def test_teardownfails_one_function(testdir):
|
|||||||
@py.test.mark.xfail
|
@py.test.mark.xfail
|
||||||
def test_terminate_on_hangingnode(testdir):
|
def test_terminate_on_hangingnode(testdir):
|
||||||
p = testdir.makeconftest("""
|
p = testdir.makeconftest("""
|
||||||
def pytest_sessionfinishes(session):
|
def pytest_sessionfinish(session):
|
||||||
if session.nodeid == "my": # running on slave
|
if session.nodeid == "my": # running on slave
|
||||||
import time
|
import time
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
@@ -364,9 +364,7 @@ def test_terminate_on_hangingnode(testdir):
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
# This test works when I reproduce it manually but hangs when running
|
@pytest.mark.xfail(reason="works if run outside test suite", run=False)
|
||||||
# in the test suite. --flub
|
|
||||||
@pytest.mark.skipif(True, reason="Weird hang")
|
|
||||||
def test_session_hooks(testdir):
|
def test_session_hooks(testdir):
|
||||||
testdir.makeconftest("""
|
testdir.makeconftest("""
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -109,10 +109,9 @@ class TestLoadScheduling:
|
|||||||
|
|
||||||
def test_init_distribute_chunksize(self):
|
def test_init_distribute_chunksize(self):
|
||||||
sched = LoadScheduling(2)
|
sched = LoadScheduling(2)
|
||||||
node1 = MockNode()
|
sched.addnode(MockNode())
|
||||||
node2 = MockNode()
|
sched.addnode(MockNode())
|
||||||
sched.addnode(node1)
|
node1, node2 = sched.nodes
|
||||||
sched.addnode(node2)
|
|
||||||
col = ["xyz"] * (6)
|
col = ["xyz"] * (6)
|
||||||
sched.addnode_collection(node1, col)
|
sched.addnode_collection(node1, col)
|
||||||
sched.addnode_collection(node2, col)
|
sched.addnode_collection(node2, col)
|
||||||
|
|||||||
Reference in New Issue
Block a user