Switch to stestr for generating subunit results
* https://review.openstack.org/#/c/504345/ moves the tempest run cli to stestr. In order to avoid breakage switch to stestr from testr. * Check for .testresposity and .stestr folder and then use respective test runner. It will avoid the breakage in CI. Change-Id: I1fdbe2f441a73f80d8d6e7a8263d300939a4fba3
This commit is contained in:
parent
d40200ea79
commit
e7f235f411
|
@ -267,8 +267,13 @@ result=$?
|
|||
# Print output and generate subunit if results exist
|
||||
if [ -d /var/lib/tempest ]; then
|
||||
pushd /var/lib/tempest
|
||||
$SUDO /usr/bin/testr last || true
|
||||
$SUDO bash -c "/usr/bin/testr last --subunit > /var/tmp/packstack/latest/testrepository.subunit" || true
|
||||
if [ -d .testrepository ]; then
|
||||
$SUDO /usr/bin/testr last || true
|
||||
$SUDO bash -c "/usr/bin/testr last --subunit > /var/tmp/packstack/latest/testrepository.subunit" || true
|
||||
elif [ -d .stestr ]; then
|
||||
$SUDO /usr/bin/stestr last || true
|
||||
$SUDO bash -c "/usr/bin/stestr last --subunit > /var/tmp/packstack/latest/testrepository.subunit" || true
|
||||
fi
|
||||
popd
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue