Add FFDC collection to BIOS update test
This change adds Test Setup and Test Teardwon keywords. The goal is to
collect FFDC data and SOL output when a test case fails
This also temporarily removes Warm Reset so we can continue with the
testing.
Change-Id: I6e6e8d3fa0b905b2f9252640dbf0aefef7889c85
Signed-off-by: Jay Azurin <jmazurin@us.ibm.com>
diff --git a/extended/test_bios_update.robot b/extended/test_bios_update.robot
index 5e95386..1a4dedd 100644
--- a/extended/test_bios_update.robot
+++ b/extended/test_bios_update.robot
@@ -2,8 +2,12 @@
Documentation This testsuite updates the PNOR image on the host for
... hostboot CI purposes.
-Resource ../lib/utils.robot
-Resource ../lib/connection_client.robot
+Resource ../lib/utils.robot
+Resource ../lib/connection_client.robot
+Resource ../lib/openbmc_ffdc.robot
+Test Setup Start SOL Console Logging
+Test Teardown FFDC On Test Case Fail
+Suite Teardown Collect SOL Log
*** Variables ***
@@ -38,4 +42,9 @@
Initiate Power On
Wait Until Keyword Succeeds 10 min 30 sec Is System State Host Booted
+Collect SOL Log
+ [Documentation] Log FFDC if test suite fails and collect SOL log
+ ... for debugging purposes.
+ ${sol_out}= Stop SOL Console Logging
+ Create File ${EXECDIR}${/}logs${/}SOL.log ${sol_out}