Fix testenv use of posargs in tox.ini
Change-Id: I0699a92d84cf67c42ccd695ade98e1a985039b58
This commit is contained in:
parent
04bab386bc
commit
71e79acb59
@ -162,7 +162,7 @@ def debug_test_cases():
|
||||
|
||||
|
||||
def run_test_cases():
|
||||
common.execute('stestr run --slowest {posargs}',
|
||||
common.execute('stestr run {posargs}',
|
||||
posargs=common.get_posargs(),
|
||||
capture_stdout=False)
|
||||
|
||||
|
4
tox.ini
4
tox.ini
@ -27,7 +27,7 @@ setenv =
|
||||
OS_TEST_PATH = {toxinidir}/tobiko/tests/unit
|
||||
PS1 = [tobiko@{envname}] {env:PS1:}
|
||||
PYTHONWARNINGS = ignore::Warning,{env:PYTHONWARNINGS:}
|
||||
RUN_TESTS_EXTRA_ARGS =
|
||||
RUN_TESTS_EXTRA_ARGS = --slowest
|
||||
TOBIKO_PREVENT_CREATE = {env:TOBIKO_PREVENT_CREATE:false}
|
||||
TOX_REPORT_NAME = {env:TOX_REPORT_NAME:test_results}
|
||||
TOX_REPORT_DIR = {env:TOX_REPORT_DIR:{toxinidir}/report/{envname}}
|
||||
@ -36,7 +36,7 @@ setenv =
|
||||
TOX_EXTRA_REQUIREMENTS = {env:TOX_EXTRA_REQUIREMENTS:-r{toxinidir}/extra-requirements.txt}
|
||||
VIRTUAL_ENV = {envdir}
|
||||
commands =
|
||||
{envpython} {toxinidir}/tools/run_tests.py {env:RUN_TESTS_EXTRA_ARGS} {posargs}
|
||||
{envpython} {toxinidir}/tools/run_tests.py {posargs:{env:RUN_TESTS_EXTRA_ARGS}}
|
||||
|
||||
|
||||
[testenv:py3]
|
||||
|
Loading…
Reference in New Issue
Block a user