From 0196f4676e8dc5d97e73399aed52c30142105538 Mon Sep 17 00:00:00 2001 From: Jens Rosenboom Date: Thu, 23 Jun 2016 10:51:04 +0200 Subject: [PATCH] Add ability to select specific tests for py34 For py27 you can simply run specific tests by calling tox -e py27 nova.tests.unit.test_something Add a similiar option for the py34 environment. This will skip the blacklist of tests that would otherwise be ignored for python3. Change-Id: I9bf5901afed4abf592e1aaff2f4820b9e3abc671 --- tools/pretty_tox3.sh | 9 +++++++++ tox.ini | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 tools/pretty_tox3.sh diff --git a/tools/pretty_tox3.sh b/tools/pretty_tox3.sh new file mode 100755 index 000000000000..396968111c65 --- /dev/null +++ b/tools/pretty_tox3.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +TESTRARGS=$1 + +if [ -z "$TESTRARGS" ]; then + ostestr --blacklist_file tests-py3.txt +else + ostestr -r "$TESTRARGS" +fi diff --git a/tox.ini b/tox.ini index fdc78bdeea93..cd5f710dabda 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ commands = setenv = {[testenv]setenv} commands = find . -type f -name "*.pyc" -delete - ostestr --blacklist_file tests-py3.txt + bash tools/pretty_tox3.sh '{posargs}' [testenv:functional] usedevelop = True