zuul-jobs/roles/tox/library
Albin Vass 86041d9914 Don't require tox_envlist
Since tox_envlist has a default value it cannot be undefined
so the fail task will never run. Instead handle the case when
tox_envlist is an empty string by getting the default configured
envlist from tox. Also handle the casewhen tox_envlist is 'ALL'.

This also updates tox_install_sibling_packages to correctly
handle multiple testenvs and uses configuration supplied by
'tox --showconfig -e <envlist>' instead of guessing where the
envdir and logdir are located.

We also cannot run tox inside python because it gets complicated
to know which tox_executable we should call during the python test
cases so run these commands in ansible and pass the output to
tox_install_sibling_packages.

Since role params have higher precedence than set_fact we set an
internal _tox_envlist fact that is a comma separated list of testenvs
that should be run.

Change-Id: I9e5a1b041f653cbcff7b8ed62e4a95a0a040fdd7
2020-05-19 14:32:26 +02:00
..
test-cases Merge "Revert "tox: update lint regex to not require column"" 2020-05-18 12:52:49 +00:00
__init__.py Add a python unit test framework 2018-07-25 09:11:25 -07:00
test_tox_install_sibling_packages.py Fix unittests for python2 and fedora 2020-02-24 10:50:13 -06:00
test_tox_parse_output.py Add test cases for tox line comment parsing 2020-04-03 19:34:24 +02:00
test-constraints.txt Fix unittests for python2 and fedora 2020-02-24 10:50:13 -06:00
tox_install_sibling_packages.py Don't require tox_envlist 2020-05-19 14:32:26 +02:00
tox_parse_output.py Revert "tox: update lint regex to not require column" 2020-05-18 12:23:56 +00:00