Skip to content
Commit d61545b5 authored by Martí Bolívar's avatar Martí Bolívar Committed by Carles Cufi
Browse files

scripts: runners: handle failure to import individual runners



We need all available runners to be defined as subclasses of
runners.core.ZephyrBinaryRunner in order to be able to look them up by
name at runtime. We do this by importing them from runners.__init__.

This process periodically fails when some runner or other cannot be
imported, usually because it is trying to import something outside of
stdlib and not handling ImportError.

Rather than letting this bring down the entire Python process, catch
and log the error. Sort the list again while we're here.

Signed-off-by: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent e6435fda
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment