summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-10-05 13:22:55 -0400
committerGitHub <noreply@github.com>2020-10-05 11:22:55 -0600
commitb4f1abf9a2470adf447d8032a56a0ee17947f929 (patch)
tree93315f9975549e74e3f1c1705ff0e6f8390144b6 /tox.ini
parent63313335eccb45df0d8eb43d8ed93d994b946ad2 (diff)
downloadvyos-cloud-init-b4f1abf9a2470adf447d8032a56a0ee17947f929.tar.gz
vyos-cloud-init-b4f1abf9a2470adf447d8032a56a0ee17947f929.zip
tox.ini: add integration-tests testenv definition (#595)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 3bc83a2a..1160072a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -137,6 +137,15 @@ passenv = HOME TRAVIS
deps =
-r{toxinidir}/integration-requirements.txt
+[testenv:integration-tests]
+basepython = python3
+commands = {envpython} -m pytest --log-cli-level=INFO {posargs:tests/integration_tests}
+passenv = CLOUD_INIT_*
+# test-requirements.txt is required for ./conftest.py to import successfully
+deps =
+ -r{toxinidir}/integration-requirements.txt
+ -r{toxinidir}/test-requirements.txt
+
[pytest]
# TODO: s/--strict/--strict-markers/ once xenial support is dropped
testpaths = cloudinit tests/unittests