-
Notifications
You must be signed in to change notification settings - Fork 8.2k
twister: check if qemu is executable #35424
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
twister: check if qemu is executable #35424
Conversation
98ddebb to
d811de6
Compare
d811de6 to
0452fe4
Compare
9d65b3a to
86586e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like this should be an error if the qemu binary isn't executable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wonder why the qemu binary is missing or not executable
scripts/pylib/twister/twisterlib.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in what situation qemu binary is not exist or not executable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, to get the SDK, I copied it directly from another machine. In which case twister would hang forever without any error message, I spent a lot of time to find out the root cause ( I didn't try to run case with west), finanlly I found qemu binary didn't work. So I think it's necessay to verify the qemu binary in twister
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, it is a false operation, it is better to return error, not skip
2495c9b to
59bf3c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my concerns are fixed, looks good to me.
3507338 to
a610344
Compare
When the qemu binary file doesn't exist or it is unexecutable, the twister can't detect this error then the twister will hang forever. Signed-off-by: Jingru Wang <[email protected]>
a610344 to
625411c
Compare
|
#36257 also can handle this problem |
When the qemu binary file doesn't exist or it is unexecutable, cmake will not throw error message, also the twister can't
detect this error, then the twister will hang forever
#35386
Signed-off-by: Jingru Wang [email protected]