From 940dd5c41ee8729d5697f232ba7365d67df0ac70 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Thu, 9 Feb 2017 11:31:36 +0100 Subject: [PATCH] Use ostestr instead of the custom pretty_tox.sh Switch to os-testr as wrapper for testr, instead of the custom script pretty_tox.sh. Change-Id: I70c99b82a837cc0caffadebaeb27192ecfe6f6ba --- test-requirements.txt | 2 +- tools/pretty_tox.sh | 6 ------ tox.ini | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 tools/pretty_tox.sh diff --git a/test-requirements.txt b/test-requirements.txt index 6a1ce5a..3a1e9a1 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,7 +9,7 @@ python-subunit sphinx>=1.1.2 oslosphinx oslotest>=1.1.0.0a1 -tempest-lib +os-testr>=0.4.1 testrepository>=0.0.18 testscenarios>=0.4 testtools>=0.9.34 diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh deleted file mode 100644 index dcab82c..0000000 --- a/tools/pretty_tox.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -set -o pipefail - -TESTRARGS=$1 -python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f \ No newline at end of file diff --git a/tox.ini b/tox.ini index 2dc3e95..859967f 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = bash tools/pretty_tox.sh '{posargs}' +commands = ostestr '{posargs}' [testenv:pep8] commands = flake8