Test enclosure fault led after assertion on CPU LED.
This change includes:
- Added test case to verify enclosure fault LED on assertion.
- Moved "Get System LED State" keyword from led.robot into utils.robot.
- Added the test case in skip list of barrelye and palmetto as it is NA.
Resolves openbmc/openbmc-test-automation#432
Change-Id: Ic57b488a2087e18fd5e690d800ab4ac2e08eac2b
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 569edb3..ce51f2e 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -931,6 +931,16 @@
# Set BOOT_TIME variable to current boot time.
Set Global Variable ${BOOT_COUNT} ${count}
+Get System LED State
+ [Documentation] Return the state of given system LED.
+ [Arguments] ${led_name}
+
+ # Description of argument(s):
+ # led_name System LED name (e.g. heartbeat, identify, beep).
+
+ ${state}= Read Attribute ${LED_PHYSICAL_URI}${led_name} State
+ [Return] ${state.rsplit('.', 1)[1]}
+
###############################################################################
Delete Error logs
[Documentation] Delete error logs.