SOL footprint for Power on Test
This will help capture the SOL logs when the test exits.
The SOL log will be captured in the log.html itself on
test failure or success.
Change-Id: Ia5900e2e3ad306407cdb52ab347ebca9d7be53a0
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_basic_poweron.robot b/tests/test_basic_poweron.robot
index 76976ec..0aeb069 100644
--- a/tests/test_basic_poweron.robot
+++ b/tests/test_basic_poweron.robot
@@ -3,7 +3,10 @@
Resource ../lib/boot/boot_resource_master.robot
Resource ../lib/openbmc_ffdc.robot
-Test Teardown Log FFDC
+Resource ../lib/utils.robot
+
+Test Setup Start SOL Console Logging
+Test Teardown Test Exit Logs
Force Tags chassisboot
@@ -15,3 +18,11 @@
BMC Power Off
BMC Power On
+
+*** Keywords ***
+Test Exit Logs
+ [Documentation] Log FFDC if failed and collect SOL
+ ... Logs for debugging purpose.
+ Log FFDC
+ ${sol_log}= Stop SOL Console Logging
+ Log ${sol_log}