Skip to content

Commit 330b116

Browse files
committed
Fix 22675: update for led colors in test_system_health.py
1 parent 05fc075 commit 330b116

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/system_health/test_system_health.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
'booting': 'red'
7070
}
7171

72+
7273
@pytest.fixture(autouse=True, scope="module")
7374
def check_image_version(duthost):
7475
"""Skip the test for unsupported images."""
@@ -532,7 +533,8 @@ def check_system_health_led_info(duthost):
532533
else:
533534
# Logic for faulted system: Iterate through led_cfg to find a match among non-normal keys
534535
not_normal = {color for key, color in led_cfg.items() if key != "normal"}
535-
assert system_status_lower in not_normal, f"System status LED '{system_led_status}' does not match any non-normal colors defined in config: {not_normal}"
536+
assert system_status_lower in not_normal, \
537+
f"System status LED '{system_led_status}' does not match any colors defined in config: {not_normal}"
536538

537539
return True
538540

0 commit comments

Comments
 (0)