Fix an issue on running subset of tests
It broke after the switching to stestr [1] since stestr doesn't have the --regex arguments. [1] https://review.openstack.org/#/c/571471/ Change-Id: Ied13d3c370bba2a18cd54edae0dc80050e87f07e Closes-Bug: #1800387
This commit is contained in:
parent
c4fd9bfef9
commit
755e7c0c48
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# preserve old behavior of using an arg as a regex when '--' is not present
|
|
||||||
case $@ in
|
|
||||||
(*--*) stestr run $@;;
|
|
||||||
('') stestr run;;
|
|
||||||
(*) stestr run --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
|
||||||
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
|
stestr run {posargs}
|
||||||
|
|
||||||
[testenv:fullstack]
|
[testenv:fullstack]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
|
|
Loading…
Reference in New Issue