Add "-level" option
Changes:
- Added new "level" option to supply release level the BMC.
Resolves openbmc/openbmc-test-automation#1329
Change-Id: I3c9471ccb62e3cb6d1b1f21372b441210859b126
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tools/oem/ibm/gen_csv_results.py b/tools/oem/ibm/gen_csv_results.py
index 920e79e..1cbb197 100755
--- a/tools/oem/ibm/gen_csv_results.py
+++ b/tools/oem/ibm/gen_csv_results.py
@@ -57,9 +57,14 @@
parser.add_argument(
'--platform',
- help='Openbmc platform which was used during test,\
+ help='OpenBMC platform which was used during test,\
e.g. "Witherspoon".')
+parser.add_argument(
+ '--level',
+ help='OpenBMC release level which was used during test,\
+ e.g. "OBMC920".')
+
# Populate stock_list with options we want.
stock_list = [("test_mode", 0), ("quiet", 0), ("debug", 0)]
@@ -113,7 +118,7 @@
return True
-def parse_output_xml(xml_file_path, csv_dir_path, version_id, platform):
+def parse_output_xml(xml_file_path, csv_dir_path, version_id, platform, level):
r"""
Parse the robot-generated output.xml file and extract various test
output data. Put the extracted information into a csv file in the "dest"
@@ -126,6 +131,7 @@
version_id Version of the openbmc firmware
(e.g. "v2.1-215-g6e7eacb").
platform Platform of the openbmc system.
+ level Release level of the OpenBMC system (e.g. "OBMC920").
"""
result = ExecutionResult(xml_file_path)
@@ -159,7 +165,11 @@
# Default Test data
l_subsys = 'OPENBMC'
l_test_type = 'FTC'
+
l_pse_rel = 'OBMC910'
+ if level:
+ l_pse_rel = level
+
l_env = 'HW'
l_proc = 'P9'
l_platform_type = ""
@@ -294,7 +304,7 @@
qprint_pgm_header()
- parse_output_xml(source, dest, version_id, platform)
+ parse_output_xml(source, dest, version_id, platform, level)
return True