summaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/compute/lmbench.py
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-06-29 08:36:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-06-29 08:36:04 +0000
commit1e515b6cc3dd15c399f2663999c9734610494e5c (patch)
treec40f1cf484ddf0d6d5bba1f749192bd594ffcda2 /yardstick/benchmark/scenarios/compute/lmbench.py
parenteb54a9e65e838e092e5acb5a8bd4119dd2e9f556 (diff)
parenteaebb40c960284d7d4ce9ad6221cba32c04a2827 (diff)
Merge "Convert SLA asserts to raises" into stable/fraser
Diffstat (limited to 'yardstick/benchmark/scenarios/compute/lmbench.py')
-rw-r--r--yardstick/benchmark/scenarios/compute/lmbench.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yardstick/benchmark/scenarios/compute/lmbench.py b/yardstick/benchmark/scenarios/compute/lmbench.py
index 801f7fa80..2237e49e0 100644
--- a/yardstick/benchmark/scenarios/compute/lmbench.py
+++ b/yardstick/benchmark/scenarios/compute/lmbench.py
@@ -119,8 +119,8 @@ class Lmbench(base.Scenario):
cmd = "sudo bash lmbench_latency_for_cache.sh %d %d" % \
(repetition, warmup)
else:
- raise RuntimeError("No such test_type: %s for Lmbench scenario",
- test_type)
+ raise RuntimeError("No such test_type: %s for Lmbench scenario"
+ % test_type)
LOG.debug("Executing command: %s", cmd)
status, stdout, stderr = self.client.execute(cmd)
@@ -157,7 +157,7 @@ class Lmbench(base.Scenario):
if sla_latency < cache_latency:
sla_error += "latency %f > sla:max_latency(%f); " \
% (cache_latency, sla_latency)
- assert sla_error == "", sla_error
+ self.verify_SLA(sla_error == "", sla_error)
def _test():