From 7d434d4d759be2955d297999ced6fd8904a5f1e0 Mon Sep 17 00:00:00 2001 From: 98k <18552437190@163.com> Date: Tue, 9 Oct 2018 20:59:20 +0000 Subject: [PATCH] Don't quote {posargs} in tox.ini Quotes around {posargs} cause the entire string to be combined into one arg that gets passed to stestr. This prevents passing multiple args (e.g. '--concurrency=16 some-regex') Change-Id: I0690c95e31b443ba2b842e7f72edd9c160723997 --- reference/pti/python.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/pti/python.rst b/reference/pti/python.rst index 0ea75f29f..35e6b0a2e 100644 --- a/reference/pti/python.rst +++ b/reference/pti/python.rst @@ -97,7 +97,7 @@ If there are additional mandatory args needed for running a test suite they can be added before the posargs. (this way the end user experience is the same) For example:: - stestr --test-path ./tests/unit run '{posargs}' + stestr --test-path ./tests/unit run {posargs} However, these arguments should try to be minimized because it just adds to the complexity that people will need to understand when running tests on a project. @@ -113,7 +113,7 @@ normal unit test jobs, but to switch the python executable to be setenv = PYTHON=coverage run --source $project --parallel-mode commands = - stestr run '{posargs}' + stestr run {posargs} coverage combine coverage html -d cover coverage xml -o cover/coverage.xml