runners: openocd: don't throw when no config is provided
In some cases the config is already provided for us e.g. when setting OPENOCD_NRF5_SUBFAMILY. Also it looks like config was always supposed to be optional (there are checks for it on do_run()). Signed-off-by: Rihards Skuja <rihardssk@mikrotik.com>
This commit is contained in:
parent
3412612085
commit
f59b92b3ee
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class OpenOcdBinaryRunner(ZephyrBinaryRunner):
|
||||||
config = default
|
config = default
|
||||||
self.openocd_config = config
|
self.openocd_config = config
|
||||||
|
|
||||||
if path.exists(self.openocd_config):
|
if self.openocd_config is not None and path.exists(self.openocd_config):
|
||||||
search_args = ['-s', path.dirname(self.openocd_config)]
|
search_args = ['-s', path.dirname(self.openocd_config)]
|
||||||
else:
|
else:
|
||||||
search_args = []
|
search_args = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue