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:
Jesse Pretorius 2016-03-04 14:25:19 +00:00
parent 23830066ad
commit 9d0468897c
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ whitelist_externals =
bash
git
rm
wget
setenv =
VIRTUAL_ENV={envdir}
ANSIBLE_HOST_KEY_CHECKING = False
@ -108,6 +109,9 @@ commands =
rm -rf {homedir}/.ansible
git clone https://git.openstack.org/openstack/openstack-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 \
--role-file={toxinidir}/tests/ansible-role-requirements.yml \
--ignore-errors \