Verify front and rear LED is off at standby
Changes:
- Move keyword "Verify Identify LED State" from IPMI to utils.
- Add test for checking LED at standby
- Add tags for HW_CI and CT_basic_run
Resolves openbmc/openbmc-test-automation#1314
Change-Id: I56df13ce3ff3b08f988946e04d331cfd98b41cfd
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index b861b3c..91729e2 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1593,3 +1593,23 @@
Run Keyword If '${DEBUG_TARBALL_PATH}' == '${EMPTY}' Return From Keyword
BMC Execute Command rm -rf /tmp/tarball
Install Debug Tarball On BMC ${DEBUG_TARBALL_PATH}
+
+
+Verify Identify LED State
+ [Documentation] Verify the identify LED state
+ ... matches caller's expectations.
+ [Arguments] ${expected_state}
+
+ # Description of argument(s):
+ # expected_state The LED state expected by the caller ("Blink" or "Off").
+
+ ${resp}= Read Attribute ${LED_PHYSICAL_URI}/front_id State
+ Should Be Equal ${resp}
+ ... xyz.openbmc_project.Led.Physical.Action.${expected_state}
+ ... msg=Unexpected LED state.
+
+ ${resp}= Read Attribute ${LED_PHYSICAL_URI}/rear_id State
+ Should Be Equal ${resp}
+ ... xyz.openbmc_project.Led.Physical.Action.${expected_state}
+ ... msg=Unexpected LED state.
+