summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2017-05-04 12:32:19 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-04 12:32:19 +0000
commitfa463f7e2afc9dba9d9af5ac6a5bd7dd2630d17c (patch)
tree2c7da84a09876a5b45ccdbf0b1d46cbd4a80d420
parentd3ed2bf1e8c477e013b548e7df9eada07512bf85 (diff)
parent857e3393bbd801154f35ddc7109ec8d6009c5b46 (diff)
Merge "KVMFORNFV:Passing breaktrace option to cyclictest." into stable/danube
-rw-r--r--yardstick/benchmark/scenarios/compute/cyclictest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/yardstick/benchmark/scenarios/compute/cyclictest.py b/yardstick/benchmark/scenarios/compute/cyclictest.py
index ae1d37324..9ca3a8a37 100644
--- a/yardstick/benchmark/scenarios/compute/cyclictest.py
+++ b/yardstick/benchmark/scenarios/compute/cyclictest.py
@@ -172,14 +172,15 @@ class Cyclictest(base.Scenario):
options = self.scenario_cfg["options"]
affinity = options.get("affinity", 1)
+ breaktrace = options.get("breaktrace", 1000)
interval = options.get("interval", 1000)
priority = options.get("priority", 99)
loops = options.get("loops", 1000)
threads = options.get("threads", 1)
histogram = options.get("histogram", 90)
- cmd_args = "-a %s -i %s -p %s -l %s -t %s -h %s %s" \
- % (affinity, interval, priority, loops,
+ cmd_args = "-a %s -b %s -i %s -p %s -l %s -t %s -h %s %s" \
+ % (affinity, breaktrace, interval, priority, loops,
threads, histogram, default_args)
cmd = "bash cyclictest_benchmark.sh %s" % (cmd_args)
LOG.debug("Executing command: %s", cmd)
@@ -221,6 +222,7 @@ def _test(): # pragma: no cover
options = {
"affinity": 2,
+ "breaktrace": 1000,
"interval": 100,
"priority": 88,
"loops": 10000,