Support running subset of unit tests
Change-Id: I1d5a2fe244081a33ebb1741cb4872d43e84c299b Closes-Bug: #1766012
This commit is contained in:
parent
bf529e0d25
commit
47a4d9a339
|
@ -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
|
2
tox.ini
2
tox.ini
|
@ -17,7 +17,7 @@ deps = -r{toxinidir}/requirements.txt
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
find
|
find
|
||||||
commands = find . -type f -name "*.py[c|o]" -delete
|
commands = find . -type f -name "*.py[c|o]" -delete
|
||||||
ostestr '{posargs}'
|
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
|
||||||
|
|
||||||
[testenv:fullstack]
|
[testenv:fullstack]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
|
|
Loading…
Reference in New Issue