aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 03ee0b4..3927722 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -163,7 +163,12 @@ class Openocd(object):
]
if config:
- cmd += ["-f", find_file(config)]
+ f = find_file(config)
+ if f is None:
+ print("Unable to read file " + config)
+ exit(1)
+
+ cmd += ["-f", f]
if debug:
cmd.append("-d")