Skip to content
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

lib.sh: catch some mtrace-reader failures to start thanks to "OSError" #1183

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Apr 26, 2024

This makes tests fail at the end when mtrace-reader.py could be started, for instance because one is already running (see example below)

Reminder: you can use -s to ignore firmware logs.

Traceback (most recent call last):
  File "mtrace-reader.py", line 20, in <module>
    fd = os.open(MTRACE_FILE, os.O_RDONLY)
OSError: [Errno 16] Device or resource busy: '/sys/kernel/debug/sof/mtrace/core0'

This makes tests fail at the end when mtrace-reader.py could be started,
for instance because one is already running (see example below)

Reminder: you can use -s to ignore firmware logs.

Traceback (most recent call last):
  File "mtrace-reader.py", line 20, in <module>
    fd = os.open(MTRACE_FILE, os.O_RDONLY)
OSError: [Errno 16] Device or resource busy: '/sys/kernel/debug/sof/mtrace/core0'

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb
Copy link
Collaborator Author

marc-hb commented Apr 26, 2024

Unrelated sof-logger issue in https://sof-ci.01.org/softestpr/PR1183/build360/devicetest/index.html

Everything 100% green.

@marc-hb marc-hb marked this pull request as ready for review April 26, 2024 20:59
@marc-hb marc-hb requested a review from a team as a code owner April 26, 2024 20:59
@marc-hb marc-hb requested review from fredoh9 and kv2019i April 26, 2024 21:00
Copy link
Contributor

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Typo in commit message "could be started" -> "could not be started" ? .

But patch obvious enough.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Apr 29, 2024

Thanks for the review! And for catching the typo. I would have pushed a fix for the commit title but I don't think it's worth it for one sentence in the commit message body; the risk of confusion seems low enough.

@marc-hb marc-hb merged commit a3693bb into thesofproject:main Apr 29, 2024
6 of 7 checks passed
@marc-hb marc-hb deleted the catch-mtrace-fail branch April 29, 2024 18:05
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