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
This commit is contained in:
Jens Rosenboom 2016-06-23 10:51:04 +02:00
parent baaeec1b63
commit 0196f4676e
2 changed files with 10 additions and 1 deletions

9
tools/pretty_tox3.sh Executable file
View File

@ -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

View File

@ -35,7 +35,7 @@ commands =
setenv = {[testenv]setenv} setenv = {[testenv]setenv}
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
ostestr --blacklist_file tests-py3.txt bash tools/pretty_tox3.sh '{posargs}'
[testenv:functional] [testenv:functional]
usedevelop = True usedevelop = True