Skip to content

revised LED tests (New)#2042

Merged
Hook25 merged 3 commits intomainfrom
extend_led_test
Aug 8, 2025
Merged

revised LED tests (New)#2042
Hook25 merged 3 commits intomainfrom
extend_led_test

Conversation

@stanley31huang
Copy link
Copy Markdown
Collaborator

@stanley31huang stanley31huang commented Jul 24, 2025

Description

The current led-indicator test cases do not work with multi-color LEDs, so I revised the scripts to support handling multi-color LEDs.

reference: https://dri.freedesktop.org/docs/drm/leds/leds-class-multicolor.html

Resolved issues

N/A

Documentation

N/A

Tests

test results on a system with both single color LED and multi color LED
https://certification.canonical.com/hardware/202507-37000/submission/439845/

add test case to verify SYS_LEDS format
https://certification.canonical.com/hardware/202507-36968/submission/442329/

extend LED test case to suppor multi color LED
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 24, 2025

Codecov Report

❌ Patch coverage is 90.12346% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.91%. Comparing base (7c13717) to head (18102ad).
⚠️ Report is 113 commits behind head on main.

Files with missing lines Patch % Lines
providers/base/bin/led_sysfs_resource.py 83.33% 5 Missing and 1 partial ⚠️
providers/base/bin/led_control_test.py 95.55% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2042      +/-   ##
==========================================
+ Coverage   51.21%   51.91%   +0.69%     
==========================================
  Files         386      388       +2     
  Lines       41697    41751      +54     
  Branches     7752     7761       +9     
==========================================
+ Hits        21357    21673     +316     
+ Misses      19577    19307     -270     
- Partials      763      771       +8     
Flag Coverage Δ
provider-base 28.01% <90.12%> (+1.89%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few changes suggested but this overall looks very nice (especially vompared to the awk thing). Thanks!

revised the led_sysfs_resource.py
update test job and plan
@Hook25 Hook25 merged commit 853686b into main Aug 8, 2025
24 checks passed
@Hook25 Hook25 deleted the extend_led_test branch August 8, 2025 10:22
stanley31huang added a commit that referenced this pull request Aug 14, 2025
* revised LED tests

extend LED test case to suppor multi color LED

* revised the led_sysfs_resource.py

revised the led_sysfs_resource.py

* update test job and test plan

update test job and plan
bladernr pushed a commit that referenced this pull request Aug 28, 2025
* revised LED tests

extend LED test case to suppor multi color LED

* revised the led_sysfs_resource.py

revised the led_sysfs_resource.py

* update test job and test plan

update test job and plan
stanley31huang added a commit that referenced this pull request Oct 3, 2025
* revised LED tests

extend LED test case to suppor multi color LED

* revised the led_sysfs_resource.py

revised the led_sysfs_resource.py

* update test job and test plan

update test job and plan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants