diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-06-19 12:19:41 +0000 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-07-27 07:57:37 +0000 |
commit | 9000303d8df63f8d846b28c67ce1b45f16bb6c8b (patch) | |
tree | 43b407727422240a0ee69b2ea93bfe9085d6f66c /yardstick/dispatcher | |
parent | d184d8714e543e4f2497db682154820f7eecf1de (diff) |
Adding support for multi-dispatcher
JIRA: YARDSTICK-684
This patch adds the support to enable multi-dispatcher of result.
e.g.
[DEFAULT]
debug = False
dispatcher = file, http
Change-Id: Id0e1a1bba14edd899fcf5b275be1f0a091b6db77
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'yardstick/dispatcher')
-rw-r--r-- | yardstick/dispatcher/base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/yardstick/dispatcher/base.py b/yardstick/dispatcher/base.py index e77249c54..1fc0a2f31 100644 --- a/yardstick/dispatcher/base.py +++ b/yardstick/dispatcher/base.py @@ -41,9 +41,11 @@ class Base(object): def get(config): """Returns instance of a dispatcher for dispatcher type. """ - out_type = config['DEFAULT']['dispatcher'] + list_dispatcher = \ + [Base.get_cls(out_type.capitalize())(config) + for out_type in config['DEFAULT']['dispatcher']] - return Base.get_cls(out_type.capitalize())(config) + return list_dispatcher @abc.abstractmethod def flush_result_data(self, data): |