Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "DPDK site change"
[yardstick.git]
/
yardstick
/
benchmark
/
scenarios
/
base.py
diff --git
a/yardstick/benchmark/scenarios/base.py
b/yardstick/benchmark/scenarios/base.py
index
58a0280
..
30ac1be
100644
(file)
--- a/
yardstick/benchmark/scenarios/base.py
+++ b/
yardstick/benchmark/scenarios/base.py
@@
-20,6
+20,7
@@
import six
from stevedore import extension
import yardstick.common.utils as utils
from stevedore import extension
import yardstick.common.utils as utils
+from yardstick.common import exceptions as y_exc
def _iter_scenario_classes(scenario_type=None):
def _iter_scenario_classes(scenario_type=None):
@@
-61,6
+62,11
@@
class Scenario(object):
"""Time waited after executing the run method"""
time.sleep(time_seconds)
"""Time waited after executing the run method"""
time.sleep(time_seconds)
+ def verify_SLA(self, condition, error_msg):
+ if not condition:
+ raise y_exc.SLAValidationError(
+ case_name=self.__scenario_type__, error_msg=error_msg)
+
@staticmethod
def get_types():
"""return a list of known runner type (class) names"""
@staticmethod
def get_types():
"""return a list of known runner type (class) names"""