projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d9d6e8
)
Print an error message when the OpenOCD config file can't be read
author
Palmer Dabbelt
<palmer@dabbelt.com>
Fri, 3 Mar 2017 22:11:14 +0000
(14:11 -0800)
committer
Palmer Dabbelt
<palmer@dabbelt.com>
Fri, 3 Mar 2017 23:18:16 +0000
(15:18 -0800)
debug/testlib.py
patch
|
blob
|
history
diff --git
a/debug/testlib.py
b/debug/testlib.py
index 03ee0b4c3024eef87e87d6f869d1c5402799c5c9..392772291f2ffa633b38b9d462dcec1005a59941 100644
(file)
--- 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")