Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[PATCH] Patch for Yardstick arm64 netperf_install.bash
[yardstick.git]
/
yardstick
/
dispatcher
/
base.py
diff --git
a/yardstick/dispatcher/base.py
b/yardstick/dispatcher/base.py
index
09ce8d1
..
1fc0a2f
100644
(file)
--- a/
yardstick/dispatcher/base.py
+++ b/
yardstick/dispatcher/base.py
@@
-41,12
+41,12
@@
class Base(object):
def get(config):
"""Returns instance of a dispatcher for dispatcher type.
"""
def get(config):
"""Returns instance of a dispatcher for dispatcher type.
"""
- return Base.get_cls(config["type"])(config)
+ list_dispatcher = \
+ [Base.get_cls(out_type.capitalize())(config)
+ for out_type in config['DEFAULT']['dispatcher']]
- @abc.abstractmethod
- def record_result_data(self, data):
- """Recording result data interface."""
+ return list_dispatcher
@abc.abstractmethod
@abc.abstractmethod
- def flush_result_data(self):
+ def flush_result_data(self
, data
):
"""Flush result data into permanent storage media interface."""
"""Flush result data into permanent storage media interface."""