diff options
author | Tim Newsome <tim@sifive.com> | 2022-10-12 09:46:53 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2022-10-12 09:46:53 -0700 |
commit | 52851b144f6be25ad91ec600ad96fa80d8b6043a (patch) | |
tree | 26012c572abf611c7034a782474f5fd1ffe620b2 /debug | |
parent | 774246fda3d80108243b5ad1cda0068add3d38aa (diff) | |
download | riscv-tests-52851b144f6be25ad91ec600ad96fa80d8b6043a.zip riscv-tests-52851b144f6be25ad91ec600ad96fa80d8b6043a.tar.gz riscv-tests-52851b144f6be25ad91ec600ad96fa80d8b6043a.tar.bz2 |
Fix long line to make pylint happy.
Diffstat (limited to 'debug')
-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 67f2e5b..9620f6c 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -699,8 +699,9 @@ class Gdb: self.active_child.sendline(command) self.active_child.expect("\n", timeout=timeout) self.active_child.expect(r"\(gdb\)", timeout=timeout) + output = self.active_child.before.decode("utf-8", errors="ignore") ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])') - return ansi_escape.sub('', self.active_child.before.strip().decode("utf-8", errors="ignore")).strip() + return ansi_escape.sub('', output).strip() def interact(self): """Call this from a test at a point where you just want to interact with |