diff --git a/avocado/job.py b/avocado/job.py index 8357387d7e7626be4bb99ee246f6443cf29caea9..70b1b83db0ade6e2d1d8599a800d83b21f198239 100644 --- a/avocado/job.py +++ b/avocado/job.py @@ -184,7 +184,7 @@ class TestRunner(object): test_state = q.get(timeout=cycle_timeout) except Queue.Empty: if p.is_alive(): - self.job.output_manager.throbber_progress() + self.job.result_proxy.throbber_progress() else: should_quit = True diff --git a/avocado/result.py b/avocado/result.py index 0cc877668aadbd360fef5343670e7be0370bac20..ccaf8a68d4b25d94f241dda11052de0319a485e5 100644 --- a/avocado/result.py +++ b/avocado/result.py @@ -38,6 +38,11 @@ class TestResultProxy(object): else: return None + def throbber_progress(self): + for output_plugin in self.output_plugins: + if hasattr(output_plugin, 'throbber_progress'): + output_plugin.throbber_progress() + def add_output_plugin(self, plugin): if not isinstance(plugin, TestResult): raise InvalidOutputPlugin("Object %s is not an instance of " @@ -323,3 +328,6 @@ class HumanTestResult(TestResult): """ TestResult.add_warn(self, state) self.stream.log_warn(state['time_elapsed']) + + def throbber_progress(self): + self.stream.throbber_progress()