Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
the recovery action of "baremetal down" should be triggered mandatory
[yardstick.git]
/
yardstick
/
benchmark
/
scenarios
/
availability
/
attacker
/
baseattacker.py
diff --git
a/yardstick/benchmark/scenarios/availability/attacker/baseattacker.py
b/yardstick/benchmark/scenarios/availability/attacker/baseattacker.py
index
d03d044
..
7871cc9
100644
(file)
--- a/
yardstick/benchmark/scenarios/availability/attacker/baseattacker.py
+++ b/
yardstick/benchmark/scenarios/availability/attacker/baseattacker.py
@@
-63,6
+63,7
@@
class BaseAttacker(object):
self.data = {}
self.setup_done = False
self.intermediate_variables = {}
self.data = {}
self.setup_done = False
self.intermediate_variables = {}
+ self.mandatory = False
@staticmethod
def get_attacker_cls(attacker_cfg):
@staticmethod
def get_attacker_cls(attacker_cfg):
@@
-71,7
+72,7
@@
class BaseAttacker(object):
for attacker_cls in utils.itersubclasses(BaseAttacker):
if attacker_type == attacker_cls.__attacker_type__:
return attacker_cls
for attacker_cls in utils.itersubclasses(BaseAttacker):
if attacker_type == attacker_cls.__attacker_type__:
return attacker_cls
- raise RuntimeError("No such runner_type %s" % attacker_type)
+ raise RuntimeError("No such runner_type
:
%s" % attacker_type)
def get_script_fullpath(self, path):
base_path = os.path.dirname(attacker_conf_path)
def get_script_fullpath(self, path):
base_path = os.path.dirname(attacker_conf_path)