use master/worker terminology
This commit is contained in:
@@ -667,8 +667,8 @@ class TestNodeFailure:
|
||||
""")
|
||||
res = testdir.runpytest(f, '-n1')
|
||||
res.stdout.fnmatch_lines([
|
||||
"*Replacing crashed slave*",
|
||||
"*Slave*crashed while running*",
|
||||
"*Replacing crashed worker*",
|
||||
"*Worker*crashed while running*",
|
||||
"*1 failed*1 passed*",
|
||||
])
|
||||
|
||||
@@ -682,8 +682,8 @@ class TestNodeFailure:
|
||||
""")
|
||||
res = testdir.runpytest(f, '-n2')
|
||||
res.stdout.fnmatch_lines([
|
||||
"*Replacing crashed slave*",
|
||||
"*Slave*crashed while running*",
|
||||
"*Replacing crashed worker*",
|
||||
"*Worker*crashed while running*",
|
||||
"*1 failed*3 passed*",
|
||||
])
|
||||
|
||||
@@ -695,8 +695,8 @@ class TestNodeFailure:
|
||||
""")
|
||||
res = testdir.runpytest(f, '--dist=each', '--tx=popen')
|
||||
res.stdout.fnmatch_lines([
|
||||
"*Replacing crashed slave*",
|
||||
"*Slave*crashed while running*",
|
||||
"*Replacing crashed worker*",
|
||||
"*Worker*crashed while running*",
|
||||
"*1 failed*1 passed*",
|
||||
])
|
||||
|
||||
@@ -709,8 +709,8 @@ class TestNodeFailure:
|
||||
""")
|
||||
res = testdir.runpytest(f, '--dist=each', '--tx=2*popen')
|
||||
res.stdout.fnmatch_lines([
|
||||
"*Replacing crashed slave*",
|
||||
"*Slave*crashed while running*",
|
||||
"*Replacing crashed worker*",
|
||||
"*Worker*crashed while running*",
|
||||
"*2 failed*2 passed*",
|
||||
])
|
||||
|
||||
@@ -722,12 +722,12 @@ class TestNodeFailure:
|
||||
def test_c(): os._exit(1)
|
||||
def test_d(): pass
|
||||
""")
|
||||
res = testdir.runpytest(f, '-n4', '--max-slave-restart=1')
|
||||
res = testdir.runpytest(f, '-n4', '--max-worker-restart=1')
|
||||
res.stdout.fnmatch_lines([
|
||||
"*Replacing crashed slave*",
|
||||
"*Maximum crashed slaves reached: 1*",
|
||||
"*Slave*crashed while running*",
|
||||
"*Slave*crashed while running*",
|
||||
"*Replacing crashed worker*",
|
||||
"*Maximum crashed workers reached: 1*",
|
||||
"*Worker*crashed while running*",
|
||||
"*Worker*crashed while running*",
|
||||
"*2 failed*2 passed*",
|
||||
])
|
||||
|
||||
@@ -736,7 +736,7 @@ class TestNodeFailure:
|
||||
import os
|
||||
os._exit(1)
|
||||
""")
|
||||
res = testdir.runpytest(f, '-n4', '--max-slave-restart=0')
|
||||
res = testdir.runpytest(f, '-n4', '--max-worker-restart=0')
|
||||
res.stdout.fnmatch_lines([
|
||||
"*Unexpectedly no active workers*",
|
||||
"*INTERNALERROR*"
|
||||
@@ -749,10 +749,10 @@ class TestNodeFailure:
|
||||
def test_b(): os._exit(1)
|
||||
def test_c(): pass
|
||||
""")
|
||||
res = testdir.runpytest(f, '-n4', '--max-slave-restart=0')
|
||||
res = testdir.runpytest(f, '-n4', '--max-worker-restart=0')
|
||||
res.stdout.fnmatch_lines([
|
||||
"*Slave restarting disabled*",
|
||||
"*Slave*crashed while running*",
|
||||
"*Worker restarting disabled*",
|
||||
"*Worker*crashed while running*",
|
||||
"*1 failed*2 passed*",
|
||||
])
|
||||
|
||||
|
||||
@@ -371,5 +371,5 @@ def test_remote_env_vars(testdir):
|
||||
assert os.environ['PYTEST_XDIST_WORKER'] in ('gw0', 'gw1')
|
||||
assert os.environ['PYTEST_XDIST_WORKER_COUNT'] == '2'
|
||||
''')
|
||||
result = testdir.runpytest('-n2', '--max-slave-restart=0')
|
||||
result = testdir.runpytest('-n2', '--max-worker-restart=0')
|
||||
assert result.ret == 0
|
||||
|
||||
Reference in New Issue
Block a user