FFFDC collection for power supply test teardown
Resolves openbmc/openbmc-test-automation#1333
Change-Id: I32b476d84e22b52942abf2af70de124e13a424af
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_power_supply.robot b/tests/test_power_supply.robot
index 4f01bc7..2ce4d80 100644
--- a/tests/test_power_supply.robot
+++ b/tests/test_power_supply.robot
@@ -84,7 +84,8 @@
[Documentation] Check that power supply error is logged when one of the
... power supply inputs is unplugged.
[Tags] Power_Supply_Error_Logging_Test_At_Runtime
- [Teardown] Set Power Supply Present ${1}
+ [Teardown] Run Keywords FFDC On Test Case Fail AND
+ ... Set Power Supply Present ${1}
REST Power On stack_mode=skip
@@ -158,8 +159,6 @@
# Description of argument(s):
# power_present_setting Enable or disable power present field (e.g."0/1").
- FFDC On Test Case Fail
-
${data}= Create Dictionary data=${power_present_setting}
Write Attribute
... ${HOST_INVENTORY_URI}system/chassis/motherboard/powersupply0