aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-02-27 03:12:35 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-27 03:12:35 +0000
commit177feabf43564afd28c7b4112ad4e384a3654bd8 (patch)
treef9e09a5e74e8ba250a98fc44ff61befd4bd56395 /tests
parent340febcafe849757da4371eb28f05b2ad817d162 (diff)
parent2fa45d2f7e175cc5cbb57671dfc1c4afdd12a784 (diff)
Merge "BugFix: Adopt to latest result structure while parsing the results"
Diffstat (limited to 'tests')
-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):