From 9a06348f4740a96270955e914c0450c263c932e2 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 23 Feb 2015 08:20:44 -0500 Subject: add pretty_tox to nova functional tests debugging tests is a lot easier when you can actually inject stderr directly through even on successes. Add the pretty tox facility from nova / tempest-lib into python-nova client as well for functional tests. Change-Id: I5c1f8244a5c743b590b74a8eb3eaf4a699555644 --- tools/pretty_tox.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tools/pretty_tox.sh (limited to 'tools') diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh new file mode 100755 index 00000000..799ac184 --- /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 -- cgit v1.2.1