@@ -244,7 +244,7 @@ def pytest_load_initial_conftests(early_config):
244244 def test_data_exchange (self , testdir ):
245245 testdir .makeconftest (
246246 """
247- # This hook only called on master .
247+ # This hook only called on the controlling process .
248248 def pytest_configure_node(node):
249249 node.workerinput['a'] = 42
250250 node.workerinput['b'] = 7
@@ -257,7 +257,7 @@ def pytest_configure(config):
257257 r = a + b
258258 config.workeroutput['r'] = r
259259
260- # This hook only called on master .
260+ # This hook only called on the controlling process .
261261 def pytest_testnodedown(node, error):
262262 node.config.calc_result = node.workeroutput['r']
263263
@@ -289,7 +289,7 @@ def pytest_sessionfinish(session):
289289 # on the worker
290290 if hasattr(session.config, 'workeroutput'):
291291 session.config.workeroutput['s2'] = 42
292- # on the master
292+ # on the controller
293293 def pytest_testnodedown(node, error):
294294 assert node.workeroutput['s2'] == 42
295295 print ("s2call-finished")
@@ -503,7 +503,7 @@ def pytest_sessionfinish(session):
503503 if hasattr(session.config, 'workerinput'):
504504 name = "worker"
505505 else:
506- name = "master "
506+ name = "controller "
507507 with open(name, "w") as f:
508508 f.write("xy")
509509 # let's fail on the worker
@@ -524,12 +524,12 @@ def test_hello():
524524 d = result .parseoutcomes ()
525525 assert d ["passed" ] == 1
526526 assert testdir .tmpdir .join ("worker" ).check ()
527- assert testdir .tmpdir .join ("master " ).check ()
527+ assert testdir .tmpdir .join ("controller " ).check ()
528528
529529
530530def test_session_testscollected (testdir ):
531531 """
532- Make sure master node is updating the session object with the number
532+ Make sure controller node is updating the session object with the number
533533 of tests collected from the workers.
534534 """
535535 testdir .makepyfile (
@@ -574,7 +574,7 @@ def test_hello(myarg):
574574
575575
576576def test_config_initialization (testdir , monkeypatch , pytestconfig ):
577- """Ensure workers and master are initialized consistently. Integration test for #445"""
577+ """Ensure workers and controller are initialized consistently. Integration test for #445"""
578578 testdir .makepyfile (
579579 ** {
580580 "dir_a/test_foo.py" : """
@@ -1138,7 +1138,7 @@ def test_aaa1(crasher):
11381138 assert "INTERNALERROR" not in result .stderr .str ()
11391139
11401140
1141- def test_internal_errors_propagate_to_master (testdir ):
1141+ def test_internal_errors_propagate_to_controller (testdir ):
11421142 testdir .makeconftest (
11431143 """
11441144 def pytest_collection_modifyitems():
@@ -1408,12 +1408,18 @@ def test_is_xdist_worker(self, fake_request):
14081408 del fake_request .config .workerinput
14091409 assert not xdist .is_xdist_worker (fake_request )
14101410
1411- def test_is_xdist_master (self , fake_request ):
1411+ def test_is_xdist_controller (self , fake_request ):
1412+
14121413 assert not xdist .is_xdist_master (fake_request )
1414+ assert not xdist .is_xdist_controller (fake_request )
1415+
14131416 del fake_request .config .workerinput
14141417 assert xdist .is_xdist_master (fake_request )
1418+ assert xdist .is_xdist_controller (fake_request )
1419+
14151420 fake_request .config .option .dist = "no"
14161421 assert not xdist .is_xdist_master (fake_request )
1422+ assert not xdist .is_xdist_controller (fake_request )
14171423
14181424 def test_get_xdist_worker_id (self , fake_request ):
14191425 assert xdist .get_xdist_worker_id (fake_request ) == "gw5"
0 commit comments