1*** Settings *** 2Documentation BMC server health, check error logs. 3 4# Test Parameters: 5# OPENBMC_HOST The BMC host name or IP address. 6 7Resource ../../lib/bmc_redfish_resource.robot 8Resource ../../lib/openbmc_ffdc.robot 9 10Suite Setup Suite Setup Execution 11Test Setup Printn 12 13Test Tags Check_Error_Logs 14 15*** Variables *** 16${QUIET} ${1} 17 18*** Test Cases *** 19 20Collect Error Logs 21 [Documentation] Check error logs with Redfish. 22 [Tags] Collect_Error_Logs 23 [Setup] Redfish.Login 24 [Teardown] Redfish Test Teardown Execution 25 26 ${redfish_event_logs}= Get Event Logs 27 ${redfish_event_logs}= gen_robot_print.Sprint Vars redfish_event_logs 28 Set Suite Variable ${redfish_event_logs} 29 Log To Console \n\nEvent logs:${redfish_event_logs} 30 ${event_logs_flagged}= Get Event Logs Not Ok 31 ${event_logs_flagged}= gen_robot_print.Sprint Vars event_logs_flagged 32 Log To Console \n\nEvent logs flagged:${event_logs_flagged} 33 34 35*** Keywords *** 36 37Suite Setup Execution 38 [Documentation] Do test suite setup tasks. 39 40 Set Log Level DEBUG 41 Log To Console ${OPENBMC_HOST} 42 43 44Redfish Test Teardown Execution 45 [Documentation] Do the post test teardown for redfish. 46 47 Redfish.Logout 48 FFDC On Test Case Fail 49