From eca9105cac5d465dfacf162200e09599c8b98c4b Mon Sep 17 00:00:00 2001 From: Christian Trautman Date: Wed, 20 Apr 2016 16:37:51 -0400 Subject: xena_version: Add versioning info for report file from Xena Adds Xena version info to report files. Works by pulling the version info from the result file and adding it to the settings dictionary. JIRA: VSPERF-274 Change-Id: I2b7db30e5a621f32a7eaacfe48ab1bca498e4287 Signed-off-by: Christian Trautman --- tools/pkt_gen/xena/xena.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/pkt_gen/xena') diff --git a/tools/pkt_gen/xena/xena.py b/tools/pkt_gen/xena/xena.py index 969a5a88..dd23d0e5 100755 --- a/tools/pkt_gen/xena/xena.py +++ b/tools/pkt_gen/xena/xena.py @@ -75,6 +75,8 @@ class Xena(ITrafficGenerator): """ # get the test type from the report file test_type = root[0][1].get('TestType') + # set the version from the report file + settings.setValue('XENA_VERSION', root[0][0][1].get('GeneratedBy')) if test_type == 'Throughput': results = OrderedDict() -- cgit 1.2.3-korg