Check "Front and Rear LED" state by LED group
Not all the platforms have the same physical LEDs but they all have the
same LED group for indentify LED.
Change-Id: Idfd18668e9fcb8ab32f2651719f21ab6f485e334
Signed-off-by: Alvin Wang <alvinwang@msn.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 6e5ef14..34fa216 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -601,23 +601,14 @@
Verify Identify LED State
- [Documentation] Verify the identify LED state
- ... matches caller's expectations.
+ [Documentation] Verify that the identify state of the LED group matches caller's expectations.
[Arguments] ${expected_state}
# Description of argument(s):
- # expected_state The LED state expected by the caller ("Blink" or "Off").
+ # expected_state The expected LED asserted state (1 = asserted, 0 = not asserted).
- ${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.
-
+ ${led_state}= Get LED State XYZ enclosure_identify
+ Should Be Equal ${led_state} ${expected_state} msg=Unexpected LED state.
Verify The Attribute
[Documentation] Verify the given attribute.