This commit adds the pretty_tox.sh script and the usage of subunit-trace to the cinder unit test jobs. This also updates the run_tests.sh script to use subunit-trace so it'll have consistent output formatting with the tox job. Change-Id: I8ceafb476dc488b388c7f63501ef48128d8383d2changes/20/158020/2
parent
5e05d97231
commit
456db81765
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o pipefail
|
||||
|
||||
TESTRARGS=$1
|
||||
|
||||
# --until-failure is not compatible with --subunit see:
|
||||
#
|
||||
# https://bugs.launchpad.net/testrepository/+bug/1411804
|
||||
#
|
||||
# this work around exists until that is addressed
|
||||
if [[ "$TESTARGS" =~ "until-failure" ]]; then
|
||||
python setup.py test --no-parallel --slowest --testr-args="$TESTRARGS"
|
||||
else
|
||||
python setup.py test --no-parallel --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
|
||||
fi
|
Loading…
Reference in new issue