aboutsummaryrefslogtreecommitdiffstats
path: root/vsperf
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-06-23 10:01:27 +0100
committerMartin Klozik <martinx.klozik@intel.com>2016-06-23 12:25:47 +0100
commite04b1b9a22f93bb1783ff9e82486aec38dcb0efb (patch)
treebaaa0cca374fa1b677cc2a2b7cf5f843d109609d /vsperf
parentbb1323f26bb6e6cafd392727c066f3919215a20f (diff)
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 <martinx.klozik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'vsperf')
-rwxr-xr-xvsperf4
1 files changed, 4 insertions, 0 deletions
diff --git a/vsperf b/vsperf
index 789e5df8..f2f443be 100755
--- a/vsperf
+++ b/vsperf
@@ -622,6 +622,10 @@ def main():
traffic_ctl.send_traffic(traffic)
_LOGGER.debug("Traffic Results:")
traffic_ctl.print_results()
+
+ # write results into CSV file
+ result_file = os.path.join(results_path, "result.csv")
+ PerformanceTestCase.write_result_to_file(traffic_ctl.get_results(), result_file)
else:
# configure tests
if args['integration']: