9a06348f47
debugging tests is a lot easier when you can actually inject stderr directly through even on successes. Add the pretty tox facility from nova / tempest-lib into python-nova client as well for functional tests. Change-Id: I5c1f8244a5c743b590b74a8eb3eaf4a699555644
17 lines
426 B
Bash
Executable File
17 lines
426 B
Bash
Executable File
#!/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 testr --slowest --testr-args="$TESTRARGS"
|
|
else
|
|
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
|
|
fi
|