Implement human readable logging for functional tests
This patch implements a callback plugin to provide human readable logging for functional tests in order to aid the resolution of any functional testing failures. Change-Id: Ifd7bcd71672bf0627f4877b3e278a2fadd17e1aa
This commit is contained in:
parent
23830066ad
commit
9d0468897c
4
tox.ini
4
tox.ini
|
@ -15,6 +15,7 @@ whitelist_externals =
|
||||||
bash
|
bash
|
||||||
git
|
git
|
||||||
rm
|
rm
|
||||||
|
wget
|
||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
ANSIBLE_HOST_KEY_CHECKING = False
|
ANSIBLE_HOST_KEY_CHECKING = False
|
||||||
|
@ -108,6 +109,9 @@ commands =
|
||||||
rm -rf {homedir}/.ansible
|
rm -rf {homedir}/.ansible
|
||||||
git clone https://git.openstack.org/openstack/openstack-ansible-plugins \
|
git clone https://git.openstack.org/openstack/openstack-ansible-plugins \
|
||||||
{homedir}/.ansible/plugins
|
{homedir}/.ansible/plugins
|
||||||
|
# This plugin makes the ansible-playbook output easier to read
|
||||||
|
wget -O {homedir}/.ansible/plugins/callback/human_log.py \
|
||||||
|
https://gist.githubusercontent.com/cliffano/9868180/raw/f360f306b3c6d689734a6aa8773a00edf16a0054/human_log.py
|
||||||
ansible-galaxy install \
|
ansible-galaxy install \
|
||||||
--role-file={toxinidir}/tests/ansible-role-requirements.yml \
|
--role-file={toxinidir}/tests/ansible-role-requirements.yml \
|
||||||
--ignore-errors \
|
--ignore-errors \
|
||||||
|
|
Loading…
Reference in New Issue