summaryrefslogtreecommitdiff
path: root/tox
diff options
context:
space:
mode:
authorSachi King <nakato@nakato.io>2016-02-11 15:54:23 +1100
committerSachi King <nakato@nakato.io>2016-02-11 15:54:23 +1100
commit92b6e7baa7e8a0ea9767592f9f040c02c0017f80 (patch)
treeaf04acb9d9c76ebcc5c11388675c56653ef550c9 /tox
parent7b3be8df797018bc2002aa2e8915b960f31579e6 (diff)
downloadtox-git-92b6e7baa7e8a0ea9767592f9f040c02c0017f80.tar.gz
Fix section substitution with {posargs}
Use crossonly to stop substitution immediately after the section is substituted, the values run through substitution again afterwards, and this will clean off {posargs} and any other substitutions that need to be made.
Diffstat (limited to 'tox')
-rw-r--r--tox/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox/config.py b/tox/config.py
index 079dff34..67454bcf 100644
--- a/tox/config.py
+++ b/tox/config.py
@@ -1094,7 +1094,7 @@ class _ArgvlistReader:
current_command += line
if is_section_substitution(current_command):
- replaced = reader._replace(current_command)
+ replaced = reader._replace(current_command, crossonly=True)
commands.extend(cls.getargvlist(reader, replaced))
else:
commands.append(cls.processcommand(reader, current_command))