diff options
author | Tim Newsome <tim@sifive.com> | 2023-09-28 11:12:04 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2023-09-28 13:46:37 -0700 |
commit | e10e446c1c70958b67eab97363f8096f8aa7ae09 (patch) | |
tree | 307dd3f270c38deb972611c4bf83f9eb56948c21 | |
parent | d4eaa5bd6674b51d3b9b24913713c4638e99cdd9 (diff) | |
download | riscv-tests-e10e446c1c70958b67eab97363f8096f8aa7ae09.zip riscv-tests-e10e446c1c70958b67eab97363f8096f8aa7ae09.tar.gz riscv-tests-e10e446c1c70958b67eab97363f8096f8aa7ae09.tar.bz2 |
debug: Make Openocd.targets() tolerate blank lines.
-rw-r--r-- | debug/testlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 435b41b..9f048c0 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -483,7 +483,8 @@ class Openocd: headers = lines[0].split() data = [] for line in lines[2:]: - data.append(dict(zip(headers, line.split()[1:]))) + if line.strip(): + data.append(dict(zip(headers, line.split()[1:]))) return data def wait_until_running(self, harts): |