Skip to content

Commit

Permalink
debug: Tolerate more whitespace from OpenOCD CLI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timsifive committed Jul 24, 2023
1 parent e63009f commit 83425c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 83425c3

Please sign in to comment.