summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2016-11-10 14:26:42 +0100
committerJulien Danjou <julien@danjou.info>2016-11-14 21:38:00 +0100
commit09d5b3d45eb3c3f2a269c99ceda7eb141116e9d3 (patch)
treef2017906d917f450321c46c2488b94278a24e2ff /tools
parent4e46ae1a5dd98e21f1c68fda2a8e010cf6bae7d2 (diff)
downloadtooz-09d5b3d45eb3c3f2a269c99ceda7eb141116e9d3.tar.gz
tox: use pretty tox output
Change-Id: Ib8738de03820f94b9e68681631034b7847c39fbb
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pretty_tox.sh16
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