blob: 1a5a3ba28183ce7cf067c701a42ac12428607cee [file] [log] [blame]
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -05001*** Settings ***
2Documentation This suite is to run some test at the end of execution.
3
George Keishing4d8e3092021-07-15 04:25:40 -05004Resource ../lib/openbmc_ffdc.robot
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -05005
6Test Teardown FFDC On Test Case Fail
7
8
9*** Variables ***
10
11# Error strings to check from journald.
12${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
13
14
15*** Test Cases ***
16
17Verify No BMC Dump And Application Failures In BMC
18 [Documentation] Verify no BMC dump and application failure exists in BMC.
19 [Tags] Verify_No_BMC_Dump_And_Application_Failures_In_BMC
20
21 # Check dump entry based on Redfish API availability.
22 ${redfish_resp}= OpenBMC Get Request /redfish/v1/Systems/system/LogServices/Dump
23
24 ${resp}= Run Keyword If '${redfish_resp.status_code}' == '${HTTP_NOT_FOUND}'
25 ... OpenBMC Get Request /xyz/openbmc_project/dump/entry/list
26 ... ELSE Redfish.Get Properties /redfish/v1/Managers/bmc/LogServices/Dump/Entries
27
28 Run Keyword If '${redfish_resp.status_code}' == '${HTTP_NOT_FOUND}'
29 ... Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}
30 ... ELSE Should Be Equal As Strings ${resp["Members@odata.count"]} 0
31
32 Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b