diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-02-12 15:34:57 -0800 |
---|---|---|
committer | Deepak S <deepak.s@linux.intel.com> | 2017-02-12 18:52:02 -0800 |
commit | 2fa45d2f7e175cc5cbb57671dfc1c4afdd12a784 (patch) | |
tree | cfb94e0985d1acb863ad5c8a209f10c3e4dc39e1 /yardstick/cmd | |
parent | d45d6aacdd769f07bfc2bad92be57a1c2ccf5d1f (diff) |
BugFix: Adopt to latest result structure while parsing the results
Change-Id: I298ea69c86019936585df4bae30ce8ea12d179f4
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'yardstick/cmd')
-rwxr-xr-x | yardstick/cmd/NSBperf.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yardstick/cmd/NSBperf.py b/yardstick/cmd/NSBperf.py index dd96b7fc8..8f493dd0a 100755 --- a/yardstick/cmd/NSBperf.py +++ b/yardstick/cmd/NSBperf.py @@ -24,7 +24,7 @@ import argparse import json import subprocess import signal - +from oslo_serialization import jsonutils from six.moves import input @@ -126,10 +126,11 @@ class YardstickNSCli(object): if os.path.isfile("/tmp/yardstick.out"): lines = [] with open("/tmp/yardstick.out") as infile: - lines = infile.readlines() + lines = jsonutils.load(infile) if lines: - tc_res = json.loads(lines.pop(len(lines) - 1)) + lines = lines['result'] + tc_res = lines.pop(len(lines) - 1) for key, value in tc_res["benchmark"]["data"].items(): self.generate_kpi_results(key, value) self.generate_nfvi_results(value) |