diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-03-11 14:27:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 14:27:18 -0400 |
commit | 65a1b907c336786bce3917fad3f87c67f0caa7bf (patch) | |
tree | 5ecb661d3ef5b82189c7317b4efc3060dc0da7e2 /tox.ini | |
parent | d5dbbd1c54844a41067c673e915ada629fb4cd8f (diff) | |
download | vyos-cloud-init-65a1b907c336786bce3917fad3f87c67f0caa7bf.tar.gz vyos-cloud-init-65a1b907c336786bce3917fad3f87c67f0caa7bf.zip |
tox.ini: avoid substition syntax that causes a traceback on xenial (#245)
See the added comment for details.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -80,6 +80,8 @@ deps = contextlib2==0.5.1 [testenv:xenial] +# When updating this commands definition, also update the definition in +# [testenv:xenial-dev]. See the comment there for details. commands = python ./tools/pipremove jsonschema python -m pytest {posargs:tests/unittests cloudinit} @@ -91,7 +93,15 @@ deps = pytest==2.8.7 [testenv:xenial-dev] -commands = {[testenv:xenial]commands} +# This should be: +# commands = {[testenv:xenial]commands} +# but the version of pytest in xenial has a bug +# (https://github.com/tox-dev/tox/issues/208) which means that the {posargs} +# substitution variable is misparsed and causes a traceback. Ensure that any +# changes here are reflected in [testenv:xenial]. +commands = + python ./tools/pipremove jsonschema + python -m pytest {posargs:tests/unittests cloudinit} basepython = {[testenv:xenial]basepython} deps = # Refer to the comment in [xenial-shared-deps] for details |