Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add "IterationIPC" runner
[yardstick.git]
/
yardstick
/
benchmark
/
contexts
/
base.py
diff --git
a/yardstick/benchmark/contexts/base.py
b/yardstick/benchmark/contexts/base.py
index
022e365
..
1c798fb
100644
(file)
--- a/
yardstick/benchmark/contexts/base.py
+++ b/
yardstick/benchmark/contexts/base.py
@@
-81,6
+81,9
@@
class Context(object):
self.file_path = os.path.join(YARDSTICK_ROOT_PATH, file_path)
cfg = utils.read_yaml_file(self.file_path)
self.file_path = os.path.join(YARDSTICK_ROOT_PATH, file_path)
cfg = utils.read_yaml_file(self.file_path)
+ for node in cfg["nodes"]:
+ node["ctx_type"] = self.__context_type__
+
self.nodes.extend(cfg["nodes"])
self.controllers.extend([node for node in cfg["nodes"]
if node.get("role") == "Controller"])
self.nodes.extend(cfg["nodes"])
self.controllers.extend([node for node in cfg["nodes"]
if node.get("role") == "Controller"])