summaryrefslogtreecommitdiff
path: root/tests/frontend
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-01-19 17:59:25 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-01-24 11:55:24 -0500
commit2479e8df0af7be4bfcf77f554a04767087cdc5b6 (patch)
tree6de937acdb00b7697e2436c0e59ae9a22d23afd0 /tests/frontend
parentce01f87e3ac759b12eece4b20be1987ac0e6151c (diff)
downloadbuildstream-2479e8df0af7be4bfcf77f554a04767087cdc5b6.tar.gz
_frontend/widget.py: Render core messages more like other messages
In order to test when core activities occur by parsing the stderr in tests, we should make the messages conform more. At the same time, this restores alignment of columns in core messages with the element processing related messages. Also, _scheduler/scheduler.py is updated to make it's activity names conform to the (current) 5 character limit for the sake of alignment. The tests/frontend/logging.py test gets it's regexes updated for the log lines it checks for in stderr.
Diffstat (limited to 'tests/frontend')
-rw-r--r--tests/frontend/logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/frontend/logging.py b/tests/frontend/logging.py
index a10f62cc1..3243e74bc 100644
--- a/tests/frontend/logging.py
+++ b/tests/frontend/logging.py
@@ -41,7 +41,7 @@ def test_default_logging(cli, tmpdir, datafiles):
result = cli.run(project=project, args=['source', 'fetch', element_name])
result.assert_success()
- m = re.search(r"\[\d\d:\d\d:\d\d\]\[\]\[\] SUCCESS Checking sources", result.stderr)
+ m = re.search(r"\[\d\d:\d\d:\d\d\]\[\s*\]\[.*\] SUCCESS Checking sources", result.stderr)
assert(m is not None)
@@ -77,7 +77,7 @@ def test_custom_logging(cli, tmpdir, datafiles):
result = cli.run(project=project, args=['source', 'fetch', element_name])
result.assert_success()
- m = re.search(r"\d\d:\d\d:\d\d,\d\d:\d\d:\d\d.\d{6},\d\d:\d\d:\d\d,,,SUCCESS,Checking sources", result.stderr)
+ m = re.search(r"\d\d:\d\d:\d\d,\d\d:\d\d:\d\d.\d{6},\d\d:\d\d:\d\d,\s*,.*,SUCCESS,Checking sources", result.stderr)
assert(m is not None)