Require tox_envlist for tox role
Make this variable a hard requirement, since we depend on it so much. Also removes inline bash script logic. Change-Id: Ic3e8831fd81e408e1cc7b393182ba15b953e8ce0 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
9b52406207
commit
ab2caa3fa4
|
@ -1,3 +1,8 @@
|
|||
- name: Require tox_envlist variable - {{ tox_envlist }}
|
||||
fail:
|
||||
msg: "tox_envlist is required for this role"
|
||||
when: tox_envlist is not defined
|
||||
|
||||
- name: Run tox
|
||||
args:
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
|
@ -10,13 +15,6 @@
|
|||
|
||||
venv={{ tox_envlist }}
|
||||
|
||||
if [[ -z "$venv" ]]; then
|
||||
echo "Usage: $?"
|
||||
echo
|
||||
echo "VENV: The tox environment to run (eg 'python27')"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function process_testr_artifacts {
|
||||
if [ ! -d ".testrepository" ] ; then
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue