Hi, when a tempest plugin fails to load the backtrace doesn't help at all to known which plugins fail and other tests are just skipped.
$ testr list-tests
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list
No handlers could be found for logger "tempest.test_discover.plugins"
--- import errors ---
Failed to call load_tests:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 136, in loadTestsFromModule
return load_tests(self, tests, pattern)
File "tempest/test_discover/test_discover.py", line 27, in load_tests
ext_plugins = plugins.TempestTestPluginManager()
File "tempest/lib/common/utils/misc.py", line 30, in getinstance
instances[cls] = cls()
File "tempest/test_discover/plugins.py", line 77, in __init__
on_load_failure_callback=self.failure_hook)
File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 93, in __init__
verify_requirements)
File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 171, in _load_plugins
self._on_load_failure_callback(self, ep, err)
File "tempest/test_discover/plugins.py", line 82, in failure_hook
raise err
ImportError: No module named tests.tempest.plugin
Non-zero exit code (2) from test listing.
Hi, when a tempest plugin fails to load the backtrace doesn't help at all to known which plugins fail and other tests are just skipped.
$ testr list-tests OS_STDOUT_ CAPTURE= ${OS_STDOUT_ CAPTURE: -1} \ CAPTURE= ${OS_STDERR_ CAPTURE: -1} \ TIMEOUT= ${OS_TEST_ TIMEOUT: -500} \ LOCK_PATH= ${OS_TEST_ LOCK_PATH: -${TMPDIR: -'/tmp' }} \ PATH:-. /tempest/ test_discover} --list test_discover. plugins" python2. 7/site- packages/ unittest2/ loader. py", line 136, in loadTestsFromModule test_discover/ test_discover. py", line 27, in load_tests TempestTestPlug inManager( ) lib/common/ utils/misc. py", line 30, in getinstance test_discover/ plugins. py", line 77, in __init__ load_failure_ callback= self.failure_ hook) python2. 7/site- packages/ stevedore/ extension. py", line 93, in __init__ requirements) python2. 7/site- packages/ stevedore/ extension. py", line 171, in _load_plugins _on_load_ failure_ callback( self, ep, err) test_discover/ plugins. py", line 82, in failure_hook plugin
running=
OS_STDERR_
OS_TEST_
OS_TEST_
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_
No handlers could be found for logger "tempest.
--- import errors ---
Failed to call load_tests:
Traceback (most recent call last):
File "/usr/lib/
return load_tests(self, tests, pattern)
File "tempest/
ext_plugins = plugins.
File "tempest/
instances[cls] = cls()
File "tempest/
on_
File "/usr/lib/
verify_
File "/usr/lib/
self.
File "tempest/
raise err
ImportError: No module named tests.tempest.
Non-zero exit code (2) from test listing.
Cheers,