aodh/tools/pretty_tox.sh
Mehdi Abaakouk cf15d5a9de tests: simplify tox config
This runs most of the functional tests in the normal tox target.
(all except those tagged live).

Change-Id: Icf69ff743ba223c1b08abe858f567babfaaa64cf
2017-04-28 20:08:02 +02:00

17 lines
380 B
Bash
Executable File

#!/usr/bin/env bash
set -o pipefail
TESTRARGS=$*
# --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
ostestr --slowest $TESTRARGS
else
ostestr --no-pretty --slowest --subunit $TESTRARGS | subunit-trace -f
fi