From 83425c3163dfd5d1a2ecb5b2afc3b3309bfd8762 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 18 Jul 2023 13:26:07 -0700 Subject: [PATCH] debug: Tolerate more whitespace from OpenOCD CLI During the github workflow this character is \n, while on my computer it's ' '. I'm sure there's a good reason for that, but it doesn't seem worth figuring out what that reason is. --- debug/testlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug/testlib.py b/debug/testlib.py index 63cc49c79..435b41b5a 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -432,7 +432,7 @@ def command(self, cmd): self.command_count += 1 self.process.stdin.write(magic + b"\n") self.process.stdin.flush() - m = self.expect(rb"(.*)^> " + re.escape(magic)) + m = self.expect(rb"(.*)^>\s*" + re.escape(magic)) return m.group(1) def expect(self, regex, message=None):