2424
2525
2626def run_test_in_subprocess (testname , ns ):
27- """Run the given test in a subprocess with --slaveargs .
27+ """Run the given test in a subprocess with --worker-args .
2828
2929 ns is the option Namespace parsed from command-line arguments. regrtest
30- is invoked in a subprocess with the --slaveargs argument; when the
30+ is invoked in a subprocess with the --worker-args argument; when the
3131 subprocess exits, its return code, stdout and stderr are returned as a
3232 3-tuple.
3333 """
3434 from subprocess import Popen , PIPE
3535
3636 ns_dict = vars (ns )
37- slaveargs = (ns_dict , testname )
38- slaveargs = json .dumps (slaveargs )
37+ worker_args = (ns_dict , testname )
38+ worker_args = json .dumps (worker_args )
3939
4040 cmd = [sys .executable , * support .args_from_interpreter_flags (),
4141 '-u' , # Unbuffered stdout and stderr
4242 '-m' , 'test.regrtest' ,
43- '--slaveargs ' , slaveargs ]
43+ '--worker-args ' , worker_args ]
4444 if ns .pgo :
4545 cmd += ['--pgo' ]
4646
@@ -58,8 +58,8 @@ def run_test_in_subprocess(testname, ns):
5858 return retcode , stdout , stderr
5959
6060
61- def run_tests_slave ( slaveargs ):
62- ns_dict , testname = json .loads (slaveargs )
61+ def run_tests_worker ( worker_args ):
62+ ns_dict , testname = json .loads (worker_args )
6363 ns = types .SimpleNamespace (** ns_dict )
6464
6565 setup_tests (ns )
0 commit comments