mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-06 19:20:08 +00:00
Enable BytesWarnings in integration tests.
This commit is contained in:
parent
61506f87bb
commit
fa46efdb3a
@ -30,7 +30,7 @@ def test_upload_immutable(reactor, temp_dir, introducer_furl, flog_gatherer, sto
|
|||||||
proto,
|
proto,
|
||||||
sys.executable,
|
sys.executable,
|
||||||
[
|
[
|
||||||
sys.executable, '-m', 'allmydata.scripts.runner',
|
sys.executable, '-b', '-m', 'allmydata.scripts.runner',
|
||||||
'-d', node_dir,
|
'-d', node_dir,
|
||||||
'put', __file__,
|
'put', __file__,
|
||||||
]
|
]
|
||||||
|
@ -46,7 +46,7 @@ def test_onion_service_storage(reactor, request, temp_dir, flog_gatherer, tor_ne
|
|||||||
proto,
|
proto,
|
||||||
sys.executable,
|
sys.executable,
|
||||||
(
|
(
|
||||||
sys.executable, '-m', 'allmydata.scripts.runner',
|
sys.executable, '-b', '-m', 'allmydata.scripts.runner',
|
||||||
'-d', join(temp_dir, 'carol'),
|
'-d', join(temp_dir, 'carol'),
|
||||||
'put', gold_path,
|
'put', gold_path,
|
||||||
)
|
)
|
||||||
@ -60,7 +60,7 @@ def test_onion_service_storage(reactor, request, temp_dir, flog_gatherer, tor_ne
|
|||||||
proto,
|
proto,
|
||||||
sys.executable,
|
sys.executable,
|
||||||
(
|
(
|
||||||
sys.executable, '-m', 'allmydata.scripts.runner',
|
sys.executable, '-b', '-m', 'allmydata.scripts.runner',
|
||||||
'-d', join(temp_dir, 'dave'),
|
'-d', join(temp_dir, 'dave'),
|
||||||
'get', cap,
|
'get', cap,
|
||||||
)
|
)
|
||||||
@ -84,7 +84,7 @@ def _create_anonymous_node(reactor, name, control_port, request, temp_dir, flog_
|
|||||||
proto,
|
proto,
|
||||||
sys.executable,
|
sys.executable,
|
||||||
(
|
(
|
||||||
sys.executable, '-m', 'allmydata.scripts.runner',
|
sys.executable, '-b', '-m', 'allmydata.scripts.runner',
|
||||||
'create-node',
|
'create-node',
|
||||||
'--nickname', name,
|
'--nickname', name,
|
||||||
'--introducer', introducer_furl,
|
'--introducer', introducer_furl,
|
||||||
|
@ -152,9 +152,9 @@ def _tahoe_runner_optional_coverage(proto, reactor, request, other_args):
|
|||||||
`--coverage` option if the `request` indicates we should.
|
`--coverage` option if the `request` indicates we should.
|
||||||
"""
|
"""
|
||||||
if request.config.getoption('coverage'):
|
if request.config.getoption('coverage'):
|
||||||
args = [sys.executable, '-m', 'coverage', 'run', '-m', 'allmydata.scripts.runner', '--coverage']
|
args = [sys.executable, '-b', '-m', 'coverage', 'run', '-m', 'allmydata.scripts.runner', '--coverage']
|
||||||
else:
|
else:
|
||||||
args = [sys.executable, '-m', 'allmydata.scripts.runner']
|
args = [sys.executable, '-b', '-m', 'allmydata.scripts.runner']
|
||||||
args += other_args
|
args += other_args
|
||||||
return reactor.spawnProcess(
|
return reactor.spawnProcess(
|
||||||
proto,
|
proto,
|
||||||
|
@ -154,6 +154,7 @@ class CLINodeAPI(object):
|
|||||||
exe = sys.executable
|
exe = sys.executable
|
||||||
argv = [
|
argv = [
|
||||||
exe,
|
exe,
|
||||||
|
"-b",
|
||||||
u"-m",
|
u"-m",
|
||||||
u"allmydata.scripts.runner",
|
u"allmydata.scripts.runner",
|
||||||
] + argv
|
] + argv
|
||||||
|
@ -88,7 +88,7 @@ def run_bintahoe(extra_argv, python_options=None):
|
|||||||
argv = [executable]
|
argv = [executable]
|
||||||
if python_options is not None:
|
if python_options is not None:
|
||||||
argv.extend(python_options)
|
argv.extend(python_options)
|
||||||
argv.extend([u"-m", u"allmydata.scripts.runner"])
|
argv.extend([u"-b", u"-m", u"allmydata.scripts.runner"])
|
||||||
argv.extend(extra_argv)
|
argv.extend(extra_argv)
|
||||||
argv = list(unicode_to_argv(arg) for arg in argv)
|
argv = list(unicode_to_argv(arg) for arg in argv)
|
||||||
p = Popen(argv, stdout=PIPE, stderr=PIPE)
|
p = Popen(argv, stdout=PIPE, stderr=PIPE)
|
||||||
|
@ -76,7 +76,7 @@ class RunBinTahoeMixin(object):
|
|||||||
# support env yet and is also synchronous. If we could get rid of
|
# support env yet and is also synchronous. If we could get rid of
|
||||||
# this in favor of that, though, it would probably be an improvement.
|
# this in favor of that, though, it would probably be an improvement.
|
||||||
command = sys.executable
|
command = sys.executable
|
||||||
argv = python_options + ["-m", "allmydata.scripts.runner"] + args
|
argv = python_options + ["-b", "-m", "allmydata.scripts.runner"] + args
|
||||||
|
|
||||||
if env is None:
|
if env is None:
|
||||||
env = os.environ
|
env = os.environ
|
||||||
|
Loading…
x
Reference in New Issue
Block a user