mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
Fix the test output regex on Go 1.20
1.20 changes the output format of coverage checks slightly to include a package name on each line, followed by `coverage:`, but the current regex assumes that the line *starts* with `coverage:`. Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
This commit is contained in:
+1
-1
@@ -296,7 +296,7 @@ class BaseTest(object):
|
||||
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
|
||||
match = re.search(r"EXIT: (\d)\n.*\ncoverage: .*", raw_output.decode("utf-8"))
|
||||
match = re.search(r"EXIT: (\d)\n.*\n.*coverage: .*", raw_output.decode("utf-8"))
|
||||
if match is None:
|
||||
raise Exception("no matches found in output '%s'" % raw_output.decode("utf-8"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user