Skip to content

Commit

Permalink
take into account possible newlines in test_run_shell_cmd_fail
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Oct 14, 2024
1 parent cce1258 commit ccffead
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/framework/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,10 @@ def handler(signum, _):
r"\s+full command\s+ -> kill -9 \$\$",
r"\s+exit code\s+ -> -9",
r"\s+working directory\s+ -> " + work_dir,
r"\s+called from\s+ -> 'test_run_shell_cmd_fail' function in .*/test/.*/run.py \(line [0-9]+\)",
r"\s+output \(stdout\)\s+ -> .*/run-shell-cmd-output/kill-.*/out.txt",
r"\s+error/warnings \(stderr\)\s+ -> .*/run-shell-cmd-output/kill-.*/err.txt",
r"\s+interactive shell script\s* -> .*/run-shell-cmd-output/kill-.*/cmd.sh",
r"\s+called from\s+ -> 'test_run_shell_cmd_fail' function in (.|\n)*/test/(.|\n)*/run.py \(line [0-9]+\)",
r"\s+output \(stdout\)\s+ -> (.|\n)*/run-shell-cmd-output/kill-(.|\n)*/out.txt",
r"\s+error/warnings \(stderr\)\s+ -> (.|\n)*/run-shell-cmd-output/kill-(.|\n)*/err.txt",
r"\s+interactive shell script\s* -> (.|\n)*/run-shell-cmd-output/kill-(.|\n)*/cmd.sh",
]
for pattern in patterns:
regex = re.compile(pattern, re.M)
Expand Down

0 comments on commit ccffead

Please sign in to comment.