Skip to content

Conversation

@wangnuannuan
Copy link
Contributor

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]

@wangnuannuan wangnuannuan force-pushed the jingru-qemu-children-process-clean branch from 98ddebb to d811de6 Compare May 19, 2021 03:02
@github-actions github-actions bot added the area: Twister Twister label May 19, 2021
@wangnuannuan wangnuannuan force-pushed the jingru-qemu-children-process-clean branch from d811de6 to 0452fe4 Compare May 19, 2021 07:45
@wangnuannuan wangnuannuan changed the title cmake: check if qemu is executable twister: check if qemu is executable May 19, 2021
@wangnuannuan wangnuannuan force-pushed the jingru-qemu-children-process-clean branch 2 times, most recently from 9d65b3a to 86586e4 Compare May 19, 2021 08:57
Copy link
Contributor

@galak galak left a 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.

@galak galak added this to the future milestone May 19, 2021
Copy link
Contributor

@hakehuang hakehuang left a 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

Copy link
Contributor

@hakehuang hakehuang May 20, 2021

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?

Copy link
Contributor Author

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

Copy link
Contributor

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

@wangnuannuan wangnuannuan force-pushed the jingru-qemu-children-process-clean branch 2 times, most recently from 2495c9b to 59bf3c9 Compare May 21, 2021 05:15
@hakehuang hakehuang self-requested a review May 26, 2021 11:15
Copy link
Contributor

@hakehuang hakehuang left a 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.

@wangnuannuan wangnuannuan force-pushed the jingru-qemu-children-process-clean branch 2 times, most recently from 3507338 to a610344 Compare May 27, 2021 05:05
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]>
@wangnuannuan wangnuannuan force-pushed the jingru-qemu-children-process-clean branch from a610344 to 625411c Compare May 27, 2021 05:08
@wangnuannuan
Copy link
Contributor Author

#36257 also can handle this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants