terracotta/tools/pretty_tox.sh
Kevin_Zheng 70fc4850d0 fix tox
Change-Id: I3f77424c3d41fb21b9d562ee1bb82ea0e869b773
2016-02-04 14:21:40 +08:00

17 lines
426 B
Bash

#!/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