Added additional bmc ffdc.
Added the following bmc ffdc:
sensor_list
inventory
led
record_log
dmesg
meminfo
Change-Id: Iacde007b7f3107a820ebbc6640abcebc3448bdef
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
old mode 100644
new mode 100755
index b3f7e5e..39d2796
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -134,3 +134,24 @@
Append To File ${TEST_HISTORY}
... ${cur_time}:${SUITE_NAME}:${TEST_NAME}:${TEST_STATUS}${\n}
+
+Log FFDC Get Requests
+ [Documentation] Create file in current FFDC log directory.
+ ... Do openbmc get request and write to
+ ... corresponding file name.
+ [Arguments] ${key_index}
+
+ @{cmd_list}= Get ffdc get request ${key_index}
+ :FOR ${cmd} IN @{cmd_list}
+ \ ${logpath}= Catenate SEPARATOR= ${LOG_PREFIX} ${cmd[0]}
+ \ ${resp}= OpenBMC Get Request ${cmd[1]}
+ \ ${jsondata}= to json ${resp.content}
+ \ Write Data to File ${jsondata["data"]}${\n} ${logpath}
+
+
+BMC FFDC Get Requests
+ [Documentation] Get the command list and iterate
+ Open Connection And Log In
+ @{entries}= Get ffdc get request index
+ :FOR ${index} IN @{entries}
+ \ Log FFDC Get Requests ${index}