-
Notifications
You must be signed in to change notification settings - Fork 59
test: test-mic-privacy: fix skipping test #1316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: test-mic-privacy: fix skipping test #1316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes test skipping logic in the mic privacy test script by improving hardware dependency checks and adding configurable DSP settle time. The changes enhance test reliability by properly detecting when required hardware (usbrelay) is unavailable.
- Improved usbrelay availability checking with better error handling
- Added configurable DSP settle time parameter with 2-second default
- Reorganized test setup logic for better flow
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e33f50b to
f400925
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f400925 to
e0936d9
Compare
SzymonRichert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
e0936d9 to
63bd62e
Compare
63bd62e to
53b5c61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
48e58f3 to
55b6952
Compare
55b6952 to
2d1ee32
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| dlogi "Checking usbrelay availability..." | ||
| command -v usbrelay || { | ||
| # If usbrelay package is not installed | ||
| skip_test "usbrelay command not found." | ||
| } | ||
|
|
||
| # display current status of relays | ||
| usbrelay_switch --debug || { | ||
| skip_test "Failed to initialize usbrelay hardware." | ||
| } |
Copilot
AI
Nov 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The usbrelay availability check on line 156 only verifies the command exists but doesn't capture or suppress its output. When the command succeeds, any output will be displayed before the skip_test on failure. Consider redirecting output: command -v usbrelay > /dev/null || { ... }
2d1ee32 to
a1fb70d
Compare
Fix skip if no module named: usbrelay. Add skip if no relays hardware are detected. Add the new parameter to test: relay-settle-sleep by default = 1s Add loop to run more then 1 iteration. Signed-off-by: Artur Wilczak <arturx.wilczak@intel.com>
a1fb70d to
3ca571c
Compare
Fix skip if no module named: usbrelay.
Add skip if no relays hardware are detected.
Add the new parameter to test:
dsp-settle-sleep by default = 2s