Skip to content

Commit 83425c3

Browse files
committed
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.
1 parent e63009f commit 83425c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug/testlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def command(self, cmd):
432432
self.command_count += 1
433433
self.process.stdin.write(magic + b"\n")
434434
self.process.stdin.flush()
435-
m = self.expect(rb"(.*)^> " + re.escape(magic))
435+
m = self.expect(rb"(.*)^>\s*" + re.escape(magic))
436436
return m.group(1)
437437

438438
def expect(self, regex, message=None):

0 commit comments

Comments
 (0)