Merge "Support running subset of unit tests"

This commit is contained in:
Zuul 2018-04-23 16:44:23 +00:00 committed by Gerrit Code Review
commit 2f2d421a0f
2 changed files with 9 additions and 1 deletions

8
tools/ostestr_compat_shim.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# preserve old behavior of using an arg as a regex when '--' is not present
case $@ in
(*--*) ostestr $@;;
('') ostestr;;
(*) ostestr --regex "$@"
esac

View File

@ -17,7 +17,7 @@ deps = -r{toxinidir}/requirements.txt
whitelist_externals = sh
find
commands = find . -type f -name "*.py[c|o]" -delete
ostestr '{posargs}'
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
[testenv:fullstack]
basepython = python2.7