Fix some unexpected tracebacks while running tox tests
When run in fake more, the task manager isn't properly handling exceptions that can be thrown, and since negative tests can cause exceptions to be thrown, we get annoying tox tests. This fix cleans up the output of tox tests and let's you see what's really going on. Change-Id: I372d5e299deddc868ef5bfba81c7eeeda9f44b72 Closes-Bug: 1378083 Author: Robert Myers <robert.myers@RACKSPACE.COM> Co-Authored-By: Amrith Kumar <amrith@tesora.com>
This commit is contained in:
@@ -38,7 +38,10 @@ class FakeRpcClient(object):
|
||||
manager, method = self._get_tm_method(method_name)
|
||||
|
||||
def func():
|
||||
method(manager, context, *args, **kwargs)
|
||||
try:
|
||||
method(manager, context, *args, **kwargs)
|
||||
except Exception:
|
||||
LOG.exception("Error running %s", method)
|
||||
|
||||
eventlet.spawn_after(0.1, func)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user