Use stestr-3 when it's available

python3-stestr provides stestr-3, With switch to fedora
it would be installed and used.

Change-Id: Ib9f23e592105d08281f400827416e6f126935b1d
This commit is contained in:
2018-06-25 14:28:15 +05:30
parent 746fde8108
commit 029101ab82

View File

@@ -351,7 +351,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)'