Remove unnecessary removal of pyc files
In change I8fcd9370a6adbfe8bbb2ce441a6f2efad45d089a, we started setting the 'PYTHONDONTWRITEBYTECODE=1' flag. With this set, Python won't generate pyc files. As these files aren't generated, there's no need to remove them. Remove the 'find' calls that were doing this. Change-Id: Ifd4487c4566853244c4b2c90a178b1067c17fbc6 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
parent
909fe93fb1
commit
cbe2f7f6f2
6
tox.ini
6
tox.ini
|
@ -13,11 +13,9 @@ deps =
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
.[ldap,memcache,mongodb]
|
.[ldap,memcache,mongodb]
|
||||||
commands =
|
commands =
|
||||||
find keystone -type f -name "*.pyc" -delete
|
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
allowlist_externals =
|
allowlist_externals =
|
||||||
bash
|
bash
|
||||||
find
|
|
||||||
passenv = http_proxy,HTTP_PROXY,https_proxy,HTTPS_PROXY,no_proxy,NO_PROXY,PBR_VERSION
|
passenv = http_proxy,HTTP_PROXY,https_proxy,HTTPS_PROXY,no_proxy,NO_PROXY,PBR_VERSION
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
@ -55,7 +53,6 @@ setenv =
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
PYTHON=coverage run --source keystone --parallel-mode
|
PYTHON=coverage run --source keystone --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
find keystone -type f -name "*.pyc" -delete
|
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage html -d cover
|
coverage html -d cover
|
||||||
|
@ -70,7 +67,6 @@ commands = {posargs}
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands =
|
commands =
|
||||||
find keystone -type f -name "*.pyc" -delete
|
|
||||||
oslo_debug_helper {posargs}
|
oslo_debug_helper {posargs}
|
||||||
passenv = KSTEST_*
|
passenv = KSTEST_*
|
||||||
|
|
||||||
|
@ -80,7 +76,6 @@ deps =
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
setenv = OS_TEST_PATH=./keystone/tests/functional
|
setenv = OS_TEST_PATH=./keystone/tests/functional
|
||||||
commands =
|
commands =
|
||||||
find keystone -type f -name "*.pyc" -delete
|
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
stestr slowest
|
stestr slowest
|
||||||
passenv = KSTEST_*
|
passenv = KSTEST_*
|
||||||
|
@ -182,5 +177,4 @@ commands = bindep test
|
||||||
|
|
||||||
[testenv:protection]
|
[testenv:protection]
|
||||||
commands =
|
commands =
|
||||||
find keystone -type f -name "*.pyc" -delete
|
|
||||||
stestr run --test-path=./keystone/tests/protection {posargs}
|
stestr run --test-path=./keystone/tests/protection {posargs}
|
||||||
|
|
Loading…
Reference in New Issue