summaryrefslogtreecommitdiff
path: root/tests/frontend/logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/frontend/logging.py')
-rw-r--r--tests/frontend/logging.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/frontend/logging.py b/tests/frontend/logging.py
index 31a2dd909..a8f894976 100644
--- a/tests/frontend/logging.py
+++ b/tests/frontend/logging.py
@@ -125,3 +125,9 @@ def test_failed_build_listing(cli, datafiles):
assert m.start() in failure_summary_range
assert m.end() in failure_summary_range
assert len(matches) == 3 # each element should be matched once.
+
+ # Note that if we mess up the 'unique_id' of Messages, they won't be printed
+ # with the name of the relevant element, e.g. 'testfail-1.bst'. Check that
+ # they have the name as expected.
+ pattern = r"\[..:..:..\] FAILURE testfail-.\.bst: Staged artifacts do not provide command 'sh'"
+ assert len(re.findall(pattern, result.stderr, re.MULTILINE)) == 6 # each element should be matched twice.