Add flag to generate tempest plugin list
This commit adds a flag to generate a tempest plugin list. In a local environment, we don't need to generate a tempest plugin list, always when we just need to see the other documents. Besides, generating the tempest plugin list takes a long time. When GENERATE_TEMPEST_PLUGIN_LIST environment variable is 'true'(default), the plugin list is created. When the other value such as 'false' is specified, it isn't. Change-Id: I6fd3cb3045ba8bbfb39c597413e13faa3cd24ae3
This commit is contained in:
parent
7a857b04f8
commit
aa516f871f
@ -36,7 +36,8 @@ def build_plugin_registry(app):
|
|||||||
subprocess.call(['tools/generate-tempest-plugins-list.sh'], cwd=root_dir)
|
subprocess.call(['tools/generate-tempest-plugins-list.sh'], cwd=root_dir)
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
app.connect('builder-inited', build_plugin_registry)
|
if os.getenv('GENERATE_TEMPEST_PLUGIN_LIST', 'true').lower() == 'true':
|
||||||
|
app.connect('builder-inited', build_plugin_registry)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2
tox.ini
2
tox.ini
@ -20,7 +20,7 @@ setenv =
|
|||||||
PYTHONWARNINGS=default::DeprecationWarning
|
PYTHONWARNINGS=default::DeprecationWarning
|
||||||
BRANCH_NAME=master
|
BRANCH_NAME=master
|
||||||
CLIENT_NAME=tempest
|
CLIENT_NAME=tempest
|
||||||
passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH TEMPEST_CONFIG TEMPEST_CONFIG_DIR http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY ZUUL_CACHE_DIR REQUIREMENTS_PIP_LOCATION
|
passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH TEMPEST_CONFIG TEMPEST_CONFIG_DIR http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY ZUUL_CACHE_DIR REQUIREMENTS_PIP_LOCATION GENERATE_TEMPEST_PLUGIN_LIST
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command =
|
install_command =
|
||||||
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
|
Loading…
Reference in New Issue
Block a user