-
Notifications
You must be signed in to change notification settings - Fork 46
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
[BUG] /proc/asound/sofprobes breaks "check-sof-logger" test #1243
Comments
Avoid screenshots when not necessary, use copy/paste:
This is a real bug in check-sof-logger.sh, line 74 should be modified. That line is not compatible with Why did you close it? |
I re-file it privately, since this issue i found in PTL. So i thought to avoid it in Public git page. |
This bug is not specific to PTL, it's caused by SOF probes which are not specific to PTL. If you are not sure, start with a private bug first, otherwise it's a bit too late :-) The fix should be as simple as this below, could you try it and submit it? --- a/test-case/check-sof-logger.sh
+++ b/test-case/check-sof-logger.sh
@@ -68,10 +68,8 @@ func_lib_check_sudo
sof_alsa_card_found()
{
- # note: assumes SOF card names to start with "sof", e.g.
- # - /proc/asound/sofsoundwire/id
- # - /proc/asound/sofhdadsp/id
- test -e /proc/asound/sof*/id
+ test -e /proc/asound/sofsoundwire/id ||
+ test -e /proc/asound/sofhdadsp/id
}
wait_for_sof_alsa_card() |
Describe the bug
"check-sof-logger" test failed with error message "[ERROR] SOF ALSA card not available, driver probe fail?"
Triage details
Test case passed upon modified line 74 in the "check-sof-logger.sh" file
Original code: "test -e /proc/asound/sof*/id"
Modified code: "test -e /proc/asound/sofs*/id"
Cause: Above command line is looking for "sofsoundwire" directory, but in this case 2 directories were located for "sof"* string match
To Reproduce
Expected behavior
Detail Info
Linux kernel and SOF Firmware details:
Test report ID (if you find it from test report)
Test DUT Model (or a brief discribtion about the device)
Test TPLG
Test case (what test script and how you run it)
Screenshots or console output
Failed logs
The text was updated successfully, but these errors were encountered: