1
0
Fork 0

tests/dbus-runner: Log more about service management

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3973>
This commit is contained in:
Jonas Ådahl 2024-08-27 22:42:23 +02:00 committed by Marge Bot
parent d4d5cd2dc1
commit b2e1f968d9

View file

@ -60,6 +60,7 @@ class MutterDBusRunner(DBusTestCase):
print('Launching required services...', file=sys.stderr)
klass.service_processes = []
for service in launch:
print(' - Launching {}'.format(service), file=sys.stderr)
klass.service_processes += [subprocess.Popen(service)]
print('Starting mocked services...', file=sys.stderr)
@ -89,7 +90,9 @@ class MutterDBusRunner(DBusTestCase):
mock_server.terminate()
mock_server.wait()
print('Terminating services...', file=sys.stderr)
for process in klass.service_processes:
print(' - Terminating {}'.format(' '.join(process.args)), file=sys.stderr)
process.terminate()
process.wait()