From b1d14e874dba72b157c0a61b3de33ab1e85edac4 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 16 Feb 2018 21:21:01 -0500 Subject: [PATCH] Fix small oversight in Python PTI for tests In the recent change to define an explicit PTI for python testing I made a small mistake in the tox entry. This is due to me being lazy and just copy and pasting what I setup for Nova's tox.ini into my governance change. melwitt recently pointed out that the use of single quotes there prevents '--' parameters from being interpreted correctly in some cases (mainly those with spaces). This is because using the quotes around {posargs} in the tox.ini means the parameters are getting treated as a single string. This has been fixed in Nova with change I512a517fa6890b29de24060376b4d7e061dc3add and to make sure this mistake gets fixed everywhere this commit mirrors that in the PTI document. Change-Id: I906f643b2714637343a5f9ce2995e7e57c7586bb --- reference/pti/python.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/pti/python.rst b/reference/pti/python.rst index aed7ac59c..7fd87e948 100644 --- a/reference/pti/python.rst +++ b/reference/pti/python.rst @@ -84,7 +84,7 @@ Using these precludes the use of alternative runners for other users. To have a consistent interface via tox between projects' unit test jobs the command for running stestr in tox should be set to:: - stestr run '{posargs}' + stestr run {posargs} .. note:: While the use of wrapper scripts can sometimes be useful as a short term