Skip to content

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

Merged
marc-hb merged 1 commit into
thesofproject:mainfrom
marc-hb:catch-mtrace-fail
Apr 29, 2024
Merged

marc-hb merged 1 commit into
thesofproject:mainfrom
marc-hb:catch-mtrace-fail

Conversation

@marc-hb

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

Copy link
Copy Markdown
Collaborator

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 <marc.herbert@intel.com>
@marc-hb

marc-hb commented Apr 26, 2024

Copy link
Copy Markdown
Collaborator Author

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

@kv2019i kv2019i left a comment

Copy link
Copy Markdown
Contributor

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

marc-hb commented Apr 29, 2024

Copy link
Copy Markdown
Collaborator Author

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
@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