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
|
||||
.[ldap,memcache,mongodb]
|
||||
commands =
|
||||
find keystone -type f -name "*.pyc" -delete
|
||||
stestr run {posargs}
|
||||
allowlist_externals =
|
||||
bash
|
||||
find
|
||||
passenv = http_proxy,HTTP_PROXY,https_proxy,HTTPS_PROXY,no_proxy,NO_PROXY,PBR_VERSION
|
||||
|
||||
[testenv:pep8]
|
||||
@ -55,7 +53,6 @@ setenv =
|
||||
{[testenv]setenv}
|
||||
PYTHON=coverage run --source keystone --parallel-mode
|
||||
commands =
|
||||
find keystone -type f -name "*.pyc" -delete
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
@ -70,7 +67,6 @@ commands = {posargs}
|
||||
|
||||
[testenv:debug]
|
||||
commands =
|
||||
find keystone -type f -name "*.pyc" -delete
|
||||
oslo_debug_helper {posargs}
|
||||
passenv = KSTEST_*
|
||||
|
||||
@ -80,7 +76,6 @@ deps =
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
setenv = OS_TEST_PATH=./keystone/tests/functional
|
||||
commands =
|
||||
find keystone -type f -name "*.pyc" -delete
|
||||
stestr run {posargs}
|
||||
stestr slowest
|
||||
passenv = KSTEST_*
|
||||
@ -182,5 +177,4 @@ commands = bindep test
|
||||
|
||||
[testenv:protection]
|
||||
commands =
|
||||
find keystone -type f -name "*.pyc" -delete
|
||||
stestr run --test-path=./keystone/tests/protection {posargs}
|
||||
|
Loading…
Reference in New Issue
Block a user