summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-03-11 14:27:18 -0400
committerGitHub <noreply@github.com>2020-03-11 14:27:18 -0400
commit65a1b907c336786bce3917fad3f87c67f0caa7bf (patch)
tree5ecb661d3ef5b82189c7317b4efc3060dc0da7e2
parentd5dbbd1c54844a41067c673e915ada629fb4cd8f (diff)
downloadvyos-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.
-rw-r--r--tox.ini12
1 files changed, 11 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index d17f493d..7591d9f3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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