Skip to content

Conversation

@arikgreen
Copy link
Contributor

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

Copy link

Copilot AI left a 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.

@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from e33f50b to f400925 Compare October 29, 2025 11:44
@arikgreen arikgreen requested a review from Copilot October 29, 2025 11:45
Copy link

Copilot AI left a 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.

@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from f400925 to e0936d9 Compare October 29, 2025 12:52
Copy link
Collaborator

@SzymonRichert SzymonRichert left a comment

Choose a reason for hiding this comment

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

LGTM

@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from e0936d9 to 63bd62e Compare October 29, 2025 12:59
@arikgreen arikgreen added the DNM Do not merge label Oct 29, 2025
@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from 63bd62e to 53b5c61 Compare October 31, 2025 16:19
@marc-hb marc-hb removed their request for review October 31, 2025 20:42
@arikgreen arikgreen removed the DNM Do not merge label Nov 5, 2025
Copy link

Copilot AI left a 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.

@arikgreen arikgreen requested review from majunkier and removed request for SzymonRichert November 17, 2025 11:24
@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from 48e58f3 to 55b6952 Compare November 17, 2025 11:35
@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from 55b6952 to 2d1ee32 Compare November 17, 2025 17:48
@arikgreen arikgreen requested a review from Copilot November 17, 2025 17:51
Copy link

Copilot AI left a 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.

Comment on lines +155 to +164
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."
}
Copy link

Copilot AI Nov 17, 2025

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 || { ... }

Copilot uses AI. Check for mistakes.
@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from 2d1ee32 to a1fb70d Compare November 17, 2025 18:00
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>
@arikgreen arikgreen force-pushed the test-mic-privacy-fix-skip branch from a1fb70d to 3ca571c Compare November 18, 2025 13:33
@arikgreen arikgreen merged commit 3c5e9b8 into thesofproject:main Nov 19, 2025
6 of 8 checks passed
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.

4 participants