zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
9.91k stars 6.1k forks source link

twister: exception handling for FileNotFoundError when running binary #72892

Closed PerMac closed 3 weeks ago

PerMac commented 4 weeks ago

If the binary is not existing twister won't report such case as error. This patch fixes this.

fixes: #72807

arbrauns commented 4 weeks ago

I don't think this is a solid solution. Anything that completely kills the runner should result in an error, not just an exception in this specific place. Where was the stack trace being emitted in this case? That's where e.g. an exit status should be set accordingly.

PerMac commented 3 weeks ago

closed in favor of #72893