From e04b1b9a22f93bb1783ff9e82486aec38dcb0efb Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Thu, 23 Jun 2016 10:01:27 +0100 Subject: results: Write trafficgen results into CSV Write test results provided by traffic generator into CSV file also in case, that trafficgen mode is selected. JIRA: VSPERF-288 Change-Id: Ib55f9f81aadef7dd20a5dce4b000dc2c9607cb95 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Al Morton Reviewed-by: Christian Trautman --- testcases/integration.py | 2 +- testcases/testcase.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testcases') diff --git a/testcases/integration.py b/testcases/integration.py index 9733c263..fdd8b09c 100644 --- a/testcases/integration.py +++ b/testcases/integration.py @@ -191,7 +191,7 @@ class IntegrationTestCase(TestCase): results = OrderedDict() results['status'] = 'OK' if self._inttest['status'] else 'FAILED' results['details'] = self._inttest['details'] - TestCase._write_result_to_file([results], self._output_file) + TestCase.write_result_to_file([results], self._output_file) self.report_status("Test '{}'".format(self.name), self._inttest['status']) # inform vsperf about testcase failure if not self._inttest['status']: diff --git a/testcases/testcase.py b/testcases/testcase.py index 9441632b..e5f8a14c 100644 --- a/testcases/testcase.py +++ b/testcases/testcase.py @@ -245,7 +245,7 @@ class TestCase(object): self._traffic_ctl.print_results() self._tc_results = self._append_results(self._traffic_ctl.get_results()) - TestCase._write_result_to_file(self._tc_results, self._output_file) + TestCase.write_result_to_file(self._tc_results, self._output_file) def run(self): """Run the test @@ -392,7 +392,7 @@ class TestCase(object): self._hugepages_mounted = False @staticmethod - def _write_result_to_file(results, output): + def write_result_to_file(results, output): """Write list of dictionaries to a CSV file. Each element on list will create separate row in output file. -- cgit 1.2.3-korg