diff options
Diffstat (limited to 'tests/end2end/fixtures/notificationserver.py')
-rw-r--r-- | tests/end2end/fixtures/notificationserver.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/end2end/fixtures/notificationserver.py b/tests/end2end/fixtures/notificationserver.py index b643e848b..3f8cb0b1f 100644 --- a/tests/end2end/fixtures/notificationserver.py +++ b/tests/end2end/fixtures/notificationserver.py @@ -231,14 +231,16 @@ class TestNotificationServer(QObject): @pytest.fixture(scope='module') -def notification_server(qapp): +def notification_server(qapp, quteproc_process): if utils.is_windows: # The QDBusConnection destructor seems to cause error messages (and potentially # segfaults) on Windows, so we bail out early in that case. We still try to get # a connection on macOS, since it's theoretically possible to run DBus there. pytest.skip("Skipping DBus on Windows") - server = TestNotificationServer(notification.DBusNotificationAdapter.TEST_SERVICE) + qb_pid = quteproc_process.proc.pid() + server = TestNotificationServer( + f"{notification.DBusNotificationAdapter.TEST_SERVICE}{qb_pid}") registered = server.register() if not registered: assert not (utils.is_linux and testutils.ON_CI), "Expected DBus on Linux CI" |