summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2017-11-24 07:37:20 +0000
committerRoss Brattain <ross.b.brattain@intel.com>2017-12-16 09:32:56 +0000
commit74c0525b9f4ee426fde171d1cefc96dc8d6f3fd1 (patch)
treed1c39ce9e269f312235b1bf3c6cb4a9b03cc53cc
parente7338e897892b3d1c484379d8706e503bde684ab (diff)
bugfix: tc078 have no data stored or dashboard to show results
JIRA: YARDSTICK-867 1.print result in the log, showing the txt format result Change-Id: I6deeb4cf44895ef7a6c6d231c77b3843eec285d7 Signed-off-by: rexlee8776 <limingjiang@huawei.com> (cherry picked from commit 36c24ec9fc68c081d0bca507cff3ec81f8a001dc)
-rw-r--r--yardstick/benchmark/scenarios/compute/spec_cpu.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yardstick/benchmark/scenarios/compute/spec_cpu.py b/yardstick/benchmark/scenarios/compute/spec_cpu.py
index 0294f524d..39cd3fb8c 100644
--- a/yardstick/benchmark/scenarios/compute/spec_cpu.py
+++ b/yardstick/benchmark/scenarios/compute/spec_cpu.py
@@ -68,6 +68,7 @@ class SpecCPU(base.Scenario):
"""
__scenario_type__ = "SpecCPU2006"
CPU2006_DIR = "~/cpu2006"
+ CPU2006_RESULT_FILE = os.path.join(CPU2006_DIR, "result/CINT2006.001.ref.txt")
def __init__(self, scenario_cfg, context_cfg):
self.scenario_cfg = scenario_cfg
@@ -144,5 +145,12 @@ class SpecCPU(base.Scenario):
if status:
raise RuntimeError(stderr)
+ cmd = "cat %s" % self.CPU2006_RESULT_FILE
+ LOG.debug("Executing command: %s", cmd)
+ status, stdout, stderr = self.client.execute(cmd, timeout=30)
+ if status:
+ raise RuntimeError(stderr)
+ if stdout:
+ LOG.info("SPEC CPU2006 result is:\n%s", stdout)
LOG.info('SPEC CPU2006 benchmark completed, please find benchmark reports \
at /tmp/result directory')