mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 03:36:44 +00:00
refactor; use _tahoe_runner_optional_coverage
This commit is contained in:
parent
97e130aa25
commit
0227b0945e
@ -197,11 +197,7 @@ def _create_node(reactor, request, temp_dir, introducer_furl, flog_gatherer, nam
|
|||||||
print("creating", node_dir)
|
print("creating", node_dir)
|
||||||
mkdir(node_dir)
|
mkdir(node_dir)
|
||||||
done_proto = _ProcessExitedProtocol()
|
done_proto = _ProcessExitedProtocol()
|
||||||
if request.config.getoption('coverage'):
|
args = [
|
||||||
args = [sys.executable, '-m', 'coverage', 'run', '-m', 'allmydata.scripts.runner', '--coverage']
|
|
||||||
else:
|
|
||||||
args = [sys.executable, '-m', 'allmydata.scripts.runner']
|
|
||||||
args = args + [
|
|
||||||
'create-node',
|
'create-node',
|
||||||
'--nickname', name,
|
'--nickname', name,
|
||||||
'--introducer', introducer_furl,
|
'--introducer', introducer_furl,
|
||||||
@ -216,11 +212,7 @@ def _create_node(reactor, request, temp_dir, introducer_furl, flog_gatherer, nam
|
|||||||
args.append('--no-storage')
|
args.append('--no-storage')
|
||||||
args.append(node_dir)
|
args.append(node_dir)
|
||||||
|
|
||||||
reactor.spawnProcess(
|
_tahoe_runner_optional_coverage(done_proto, reactor, request, args)
|
||||||
done_proto,
|
|
||||||
sys.executable,
|
|
||||||
args,
|
|
||||||
)
|
|
||||||
created_d = done_proto.done
|
created_d = done_proto.done
|
||||||
|
|
||||||
def created(_):
|
def created(_):
|
||||||
|
Loading…
Reference in New Issue
Block a user