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

Capture qemu launch stdout and stderr #72998

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kuikka
Copy link

@kuikka kuikka commented May 19, 2024

Currently we launch qemu (well, "ninja run" usually) using Popen and request stdout and stderr to be redirected into a pipe. However we never read that pipe so the information is not captured. Instead log directly into files that can be inspected after a failed to to find out why qemu run failed.

Note that this is really only useful in cases where qemu either fails to launch or crashes.

Regular test data is still handled via the qemu fifo.

Fixes #72997

@nashif
Copy link
Member

nashif commented May 22, 2024

@kuikka please fix the commit message

Currently we launch qemu (well, "ninja run" usually) using Popen and
request stdout and stderr to be redirected into a pipe. However we never
read that pipe so the information is not captured.

Instead log directly into files that can be inspected after a failed
to to find out why qemu run failed.

Note that this is really only useful in cases where qemu either fails to
launch or crashes.

Regular test data is still handled via the qemu fifo.

Signed-off-by: Juha Kuikka <juha.kuikka@gmail.com>
@kuikka
Copy link
Author

kuikka commented May 22, 2024

@kuikka please fix the commit message

Should be good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Twister does not capture stdout or stderr from qemu launch
3 participants