BMC Model logging into output.xml for CT metrics

Resolves openbmc/openbmc-test-automation#336

Change-Id: I29b7009e1361825ab62ad1d45c1bb54f02c2779b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/__init__.robot b/tests/__init__.robot
index c142318..0925946 100644
--- a/tests/__init__.robot
+++ b/tests/__init__.robot
@@ -4,6 +4,7 @@
 Library          SSHLibrary
 Resource         ../lib/connection_client.robot
 Resource         ../lib/rest_client.robot
+Resource         ../lib/utils.robot
 
 Suite Setup      System Driver Data
 
@@ -15,13 +16,14 @@
 
 System Driver Data
     [Documentation]  System driver information.
-    Run Keyword And Ignore Error  Get BMC Driver Details
-    Run Keyword And Ignore Error  Get PNOR Driver Details
+    Open Connection And Log In
+    Run Keyword And Ignore Error  Log BMC Driver Details
+    Run Keyword And Ignore Error  Log PNOR Driver Details
+    Run Keyword And Ignore Error  Log BMC Model
 
-Get BMC Driver Details
+Log BMC Driver Details
     [Documentation]   Get BMC driver details and log.
 
-    Open Connection And Log In
     ${output}  ${stderr}=  Execute Command  ${DRIVER_CMD}
     ...  return_stderr=True
     Should Be Empty  ${stderr}
@@ -29,7 +31,7 @@
     [Return]  ${output}
 
 
-Get PNOR Driver Details
+Log PNOR Driver Details
     [Documentation]   Get PNOR driver details and log.
     ${resp}=
     ...  OpenBMC Get Request  ${INVENTORY_URI}system/bios
@@ -46,3 +48,9 @@
     Log  ${jsondata["data"]["Custom Field 7"]}
     Log  ${jsondata["data"]["Custom Field 8"]}
 
+
+Log BMC Model
+    [Documentation]  Fetch BMC Model name from system and log.
+    ${bmc_model}=  Get BMC System Model
+    Log  BMC Model=${bmc_model}
+