Skip to content

Commit

Permalink
tests/sys/shell: improve test automation
Browse files Browse the repository at this point in the history
This changes the matching to not eagerly match a shell commands
description across a line break.
  • Loading branch information
maribu committed Dec 31, 2024
1 parent 95fe972 commit 8903c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sys/shell/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def check_help(child):
# we can detect duplicates
while len(cmds_actual) > 0:
# parse line into command and description
child.expect(r"([a-z0-9_-]*)[ \t]*(.*)\r\n")
child.expect(r"([a-z0-9_-]*)[ \t]*([^\r\n]*)\r\n")
cmd = child.match.group(1)
desc = child.match.group(2)

Expand Down

0 comments on commit 8903c82

Please sign in to comment.