From 9538143face9b45a14d1a3143a54a4ab59e53127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 10 Dec 2021 23:33:50 +0100 Subject: [PATCH] dbus-runner: Add some high level logging Will log about starting services and running test case. Part-of: --- src/tests/meta-dbus-runner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/meta-dbus-runner.py b/src/tests/meta-dbus-runner.py index 493510a9a..5663fce10 100755 --- a/src/tests/meta-dbus-runner.py +++ b/src/tests/meta-dbus-runner.py @@ -30,10 +30,12 @@ class MutterDBusTestCase(DBusTestCase): def setUpClass(klass): klass.mocks = OrderedDict() + print('Starting D-Bus daemons (session & system)...', file=sys.stderr) DBusTestCase.setUpClass() klass.start_session_bus() klass.start_system_bus() + print('Starting mocked services...', file=sys.stderr) (klass.mocks_manager, klass.mock_obj) = klass.start_from_local_template( 'meta-mocks-manager', {'templates-dir': get_templates_dir()}) @@ -120,6 +122,7 @@ if __name__ == '__main__': test_case = MutterDBusTestCase() test_case.assertGreater(len(sys.argv), 1) try: + print('Running test case...', file=sys.stderr) test_case.wrap_call(sys.argv[1:]) finally: MutterDBusTestCase.tearDownClass()