Merge "Use stestr-3 when it's available"

This commit is contained in:
Zuul 2018-07-03 04:34:52 +00:00 committed by Gerrit Code Review
commit e723ae46b4

View File

@ -352,7 +352,11 @@ set -e
if [ -d .testrepository ]; then
testr last --subunit > /tmp/openstack/tempest/testrepository.subunit
elif [ -d .stestr ]; then
stestr last --subunit > /tmp/openstack/tempest/testrepository.subunit
if type "stestr-3" 2>/dev/null; then
stestr-3 last --subunit > /tmp/openstack/tempest/testrepository.subunit
else
stestr last --subunit > /tmp/openstack/tempest/testrepository.subunit
fi
fi
subunit2html /tmp/openstack/tempest/testrepository.subunit /tmp/openstack/tempest/testr_results.html
print_header 'SELinux Alerts (Tempest)'