Result: introduce interface/dispatcher for event based result plugins
Even though Avocado already publishes an interface for result plugins
(in the avocado.core.plugin_interfaces module), that one is suitable
for plugins that will generate one output after the job as a whole
finishes.
There is another type of use case, already present in Avocado, but
still not implemented using the newer plugin mechanism. The use
case is result plugins that must respond to events, some that come
from the job and some that come from tests.
The EventResult interface is a collection of Job interfaces that
would happen before tests start running (pre_tests and post_tests)
and events that are closer to the test themselves (start_test,
test_progress and end_test).
The new dispatcher calls plugins that implement the ResultEvents
interface.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录