aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2017-09-08 07:38:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-08 07:38:45 +0000
commit3d462aaa3d87a2298cf1f9a859e996d708f917fd (patch)
tree95beab4fbb6e5d80cf4b4a257b6ea74d5d99a39f /yardstick/benchmark/scenarios
parent6ed428f18c3554a71831cd1ba3d3827aecb7ef03 (diff)
parent0f2b721f5454dd98851be5416e144f81c976d2cd (diff)
Merge "testcase: add rate parameter for spec cpu 2006"
Diffstat (limited to 'yardstick/benchmark/scenarios')
-rw-r--r--yardstick/benchmark/scenarios/compute/spec_cpu.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yardstick/benchmark/scenarios/compute/spec_cpu.py b/yardstick/benchmark/scenarios/compute/spec_cpu.py
index 520618631..df361cd94 100644
--- a/yardstick/benchmark/scenarios/compute/spec_cpu.py
+++ b/yardstick/benchmark/scenarios/compute/spec_cpu.py
@@ -103,6 +103,9 @@ class SpecCPU(base.Scenario):
cmd = "cd /usr/cpu2006/ && . ./shrc && runspec --config %s" % self.runspec_config
cmd_args = ""
+ if "rate" in self.options:
+ cmd_args += " --rate %s" % self.options["runspec_rate"]
+
if "output_format" in self.options:
cmd_args += " --output_format %s" % self.options["output_format"]