From 029101ab8278184e86f79b6a4886935927376b17 Mon Sep 17 00:00:00 2001 From: yatin Date: Mon, 25 Jun 2018 14:28:15 +0530 Subject: [PATCH] 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 --- run_tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index bd2034ebc..3e917412f 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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)'