6005f80f9b
new ostestr is different and is breaking gate. i don't think we really need ostestr since we don't use it in any of the projects under Telemetry. so to remain consistent and simple, just follow similar pattern. Change-Id: I742de2107cf56ef8b223fa1431529e706cc52377
17 lines
426 B
Bash
Executable File
17 lines
426 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
|
|
python setup.py testr --slowest --testr-args="$TESTRARGS"
|
|
else
|
|
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
|
|
fi
|