Skip to content

Commit

Permalink
Update regex for test output
Browse files Browse the repository at this point in the history
  • Loading branch information
reglim committed May 15, 2023
1 parent a2b13a2 commit a3dc541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def run_cmd(self, command, expected_code=0):
if is_aptly_command:
# remove the last two rows as go tests always print PASS/FAIL and coverage in those
# two lines. This would otherwise fail the tests as they would not match gold
matches = re.findall(r"((.|\n)*)EXIT: (\d)\n.*\ncoverage: .*", raw_output.decode("utf-8"))
matches = re.findall(r"((.|\n)*)EXIT: (\d)\n", raw_output.decode("utf-8"))
if not matches:
raise Exception("no matches found in output '%s'" % raw_output.decode("utf-8"))

Expand Down

0 comments on commit a3dc541

Please sign in to comment.