use the helper

This commit is contained in:
Jean-Paul Calderone 2023-07-21 12:28:02 -04:00
parent eb3f8f6219
commit 623de2b8b4
1 changed files with 2 additions and 4 deletions

View File

@ -541,15 +541,13 @@ def tor_network(reactor, temp_dir, chutney, request):
})
chutney_argv = (sys.executable, '-m', 'chutney.TorNet')
def chutney(argv):
proto = _DumpOutputProtocol(None)
reactor.spawnProcess(
proto,
return dump_output(
reactor,
sys.executable,
chutney_argv + argv,
path=join(chutney_root),
env=env,
)
return proto.done
# now, as per Chutney's README, we have to create the network
pytest_twisted.blockon(chutney(("configure", basic_network)))