From cc0647ce1a6fdb0e1a0b6580c9f2b14e0b26fbb1 Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson Date: Sun, 12 Aug 2018 12:59:23 -0700 Subject: [PATCH] Switch to stestr and fixing gate Change-Id: I04097dbb59197a519051f1f5c88f0890ba76c48e --- tools/pretty_tox.sh | 16 ---------------- tox.ini | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100755 tools/pretty_tox.sh diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh deleted file mode 100755 index 799ac18..0000000 --- a/tools/pretty_tox.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/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 diff --git a/tox.ini b/tox.ini index cd29c6e..f80b361 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,7 @@ deps = {[testenv]deps} commands = find . -type f -name "*.py[c|o]" -delete - bash tools/pretty_tox.sh '{posargs}' + stestr run {posargs} [testenv:docs] commands = python setup.py build_sphinx