1*** Settings ***
2Documentation       This suite tests error log callout handling when checkstop
3                    is injected through HOST/BMC and BMC rebooted.
4
5Resource            ../../lib/openbmc_ffdc.robot
6Resource            ../../lib/openbmc_ffdc_utils.robot
7Resource            ../../lib/openbmc_ffdc_methods.robot
8Resource            ../../openpower/ras/ras_utils.robot
9Variables           ../../lib/ras/variables.py
10Variables           ../../data/variables.py
11
12Suite Setup         RAS Suite Setup
13Test Setup          RAS Test Setup
14Test Teardown       FFDC On Test Case Fail
15Suite Teardown      RAS Suite Cleanup
16
17Force Tags          Reboot_RAS
18
19*** Test Cases ***
20Verify Host Unrecoverable Callout Handling At Reboot
21    [Documentation]  Verify host unrecoverable callout handling at reboot.
22    [Tags]  Verify_Unrecoverable_Callout_Handling_At_Reboot
23
24    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  L2FIR_UE
25    ${translated_fir}=  Fetch FIR Address Translation Value  ${value[0]}  EX
26    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}l2fir_ue
27    Inject Unrecoverable Error  HOST  ${translated_fir}
28    ...  ${value[1]}  1  ${value[2]}  ${err_log_path}  ${1}
29
30Verify Pdbg Unrecoverable Callout Handling At Reboot
31    [Documentation]  Verify unrecoverable callout handling
32    ...              with pdbg tool at reboot.
33    [Tags]  Verify_Pdbg_Unrecoverable_Callout_Handling_At_Reboot
34
35    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  L3FIR_UE
36    ${translated_fir}=  Fetch FIR Address Translation Value  ${value[0]}  EX
37    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}l3fir_ue
38    Inject Unrecoverable Error  BMC  ${translated_fir}
39    ...  ${value[1]}  1  ${value[2]}  ${err_log_path}  ${1}
40