aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-02-12 15:34:57 -0800
committerDeepak S <deepak.s@linux.intel.com>2017-02-12 18:52:02 -0800
commit2fa45d2f7e175cc5cbb57671dfc1c4afdd12a784 (patch)
treecfb94e0985d1acb863ad5c8a209f10c3e4dc39e1 /tests/unit
parentd45d6aacdd769f07bfc2bad92be57a1c2ccf5d1f (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 'tests/unit')
-rw-r--r--tests/unit/cmd/test_NSBperf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/cmd/test_NSBperf.py b/tests/unit/cmd/test_NSBperf.py
index a14c08464..5bd248a84 100644
--- a/tests/unit/cmd/test_NSBperf.py
+++ b/tests/unit/cmd/test_NSBperf.py
@@ -40,7 +40,8 @@ class TestYardstickNSCli(unittest.TestCase):
def test_generate_final_report(self):
yardstick_ns_cli = YardstickNSCli()
test_case = "tc_baremetal_rfc2544_ipv4_1flow_1518B.yaml"
- subprocess.call(["touch", "/tmp/yardstick.out"])
+ if os.path.isfile("/tmp/yardstick.out"):
+ os.remove('/tmp/yardstick.out')
self.assertIsNone(yardstick_ns_cli.generate_final_report(test_case))
def test_generate_kpi_results(self):