diff options
| author | Julien Danjou <julien@danjou.info> | 2016-11-10 14:26:42 +0100 |
|---|---|---|
| committer | Julien Danjou <julien@danjou.info> | 2016-11-14 21:38:00 +0100 |
| commit | 09d5b3d45eb3c3f2a269c99ceda7eb141116e9d3 (patch) | |
| tree | f2017906d917f450321c46c2488b94278a24e2ff /tools | |
| parent | 4e46ae1a5dd98e21f1c68fda2a8e010cf6bae7d2 (diff) | |
| download | tooz-09d5b3d45eb3c3f2a269c99ceda7eb141116e9d3.tar.gz | |
tox: use pretty tox output
Change-Id: Ib8738de03820f94b9e68681631034b7847c39fbb
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/pretty_tox.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh new file mode 100755 index 0000000..799ac18 --- /dev/null +++ b/tools/pretty_tox.sh @@ -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 testr --slowest --testr-args="$TESTRARGS" +else + python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f +fi |
