From cf9757445512abbce066c67ee4fd5e3e129bc5fe Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Wed, 13 Jan 2016 19:04:46 -0200 Subject: [PATCH] avocado/core/dispatcher.py: propagate exceptions when running map_method The dispatcher classes weren't propagating exceptions when running `map_method`, which is basically how the command line plugins methods `configure` and `run` are called. The dispatcher should not be silent about possible exceptions thrown by plugin's `configure` and `run` methods, so let's fix that. Signed-off-by: Cleber Rosa --- avocado/core/dispatcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avocado/core/dispatcher.py b/avocado/core/dispatcher.py index 1f7ab88f..12a2026e 100644 --- a/avocado/core/dispatcher.py +++ b/avocado/core/dispatcher.py @@ -27,7 +27,8 @@ class Dispatcher(ExtensionManager): self.load_failures = [] super(Dispatcher, self).__init__(namespace=namespace, invoke_on_load=True, - on_load_failure_callback=self.store_load_failure) + on_load_failure_callback=self.store_load_failure, + propagate_map_exceptions=True) @staticmethod def store_load_failure(manager, entrypoint, exception): -- GitLab