Merge "Generate Tempest results in HTML"

This commit is contained in:
Jenkins 2017-07-22 16:49:27 +00:00 committed by Gerrit Code Review
commit 80b37d55ad
2 changed files with 8 additions and 11 deletions

View File

@ -106,7 +106,11 @@ fi
# Tempest subunit results
if [ -f /tmp/openstack/tempest/testrepository.subunit ] ; then
sudo cp /tmp/openstack/tempest/testrepository.subunit $LOG_DIR/testrepository.subunit
for f in testrepository.subunit testr_results.html;
do
sudo cp /tmp/openstack/tempest/$f $LOG_DIR/$f
sudo gzip -9 $LOG_DIR/$f
done
fi
# dstat logs

View File

@ -255,10 +255,10 @@ print_header 'Prepare Tempest'
$SUDO touch /tmp/openstack/tempest/test-whitelist.txt
$SUDO chown -R "$(id -u):$(id -g)" /tmp/openstack/tempest/test-whitelist.txt
# install from source now on ubuntu until packaged
if uses_debs; then
cd /tmp/openstack/tempest-horizon; $SUDO python setup.py install
$SUDO pip install -U testrepository os-testr
fi
set +e
@ -327,24 +327,17 @@ if [ "${TEMPEST_FROM_SOURCE}" = true ]; then
run_tempest/bin/pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt -U -r requirements.txt
run_tempest/bin/python setup.py install
export tempest_binary="run_tempest/bin/tempest"
export testr_binary="run_tempest/bin/testr"
else
export tempest_binary="/usr/bin/tempest"
export testr_binary="/usr/bin/testr"
fi
# Run tempest commands
$tempest_binary run --whitelist_file=/tmp/openstack/tempest/test-whitelist.txt --concurrency=2 $EXCLUDES
RESULT=$?
set -e
if uses_debs; then
$SUDO pip install -U testrepository
testr last --subunit > /tmp/openstack/tempest/testrepository.subunit
elif is_fedora; then
$testr_binary last --subunit > /tmp/openstack/tempest/testrepository.subunit
fi
$tempest_binary list-plugins
testr last --subunit > /tmp/openstack/tempest/testrepository.subunit
subunit2html /tmp/openstack/tempest/testrepository.subunit /tmp/openstack/tempest/testr_results.html
print_header 'SELinux Alerts (Tempest)'
catch_selinux_alerts