RAS Reboot test scenarios.
- Verify Host Unrecoverable Callout Handling At Reboot.
- Verify Pdbg Unrecoverable Callout Handling At Reboot.
Resolves openbmc/openbmc-test-automation/issues#1772
Change-Id: I6fb0a5a77a556aa9ec760dce461397e5661e9cfa
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/openpower/ras/test_reboot_ras.robot b/openpower/ras/test_reboot_ras.robot
new file mode 100755
index 0000000..e97733a
--- /dev/null
+++ b/openpower/ras/test_reboot_ras.robot
@@ -0,0 +1,39 @@
+*** Settings ***
+Documentation This suite tests error log callout handling when checkstop
+ is injected through HOST/BMC and BMC rebooted.
+
+Resource ../../lib/openbmc_ffdc.robot
+Resource ../../lib/openbmc_ffdc_utils.robot
+Resource ../../lib/openbmc_ffdc_methods.robot
+Resource ../../openpower/ras/ras_utils.robot
+Variables ../../lib/ras/variables.py
+Variables ../../data/variables.py
+
+Suite Setup RAS Suite Setup
+Test Setup RAS Test Setup
+Test Teardown FFDC On Test Case Fail
+Suite Teardown RAS Suite Cleanup
+
+Force Tags Reboot_RAS
+
+*** Test Cases ***
+Verify Host Unrecoverable Callout Handling At Reboot
+ [Documentation] Verify host unrecoverable callout handling at reboot.
+ [Tags] Verify_Unrecoverable_Callout_Handling_At_Reboot
+
+ ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L2FIR_UE
+ ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX
+ ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l2fir_ue
+ Inject Unrecoverable Error HOST ${translated_fir}
+ ... ${value[1]} 1 ${value[2]} ${err_log_path} ${1}
+
+Verify Pdbg Unrecoverable Callout Handling At Reboot
+ [Documentation] Verify unrecoverable callout handling
+ ... with pdbg tool at reboot.
+ [Tags] Verify_Pdbg_Unrecoverable_Callout_Handling_At_Reboot
+
+ ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L3FIR_UE
+ ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX
+ ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l3fir_ue
+ Inject Unrecoverable Error BMC ${translated_fir}
+ ... ${value[1]} 1 ${value[2]} ${err_log_path} ${1}