]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: don't connect to bus from analyze test run
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Mar 2025 17:19:34 +0000 (18:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Mar 2025 13:22:13 +0000 (14:22 +0100)
This thing should not be "live", hence don't try to connect to the bus,
or bind the private bus socket.

Fixes: #36540
src/core/manager.c

index 26e275f7a0846c7f9cd3ccf3da6e8a0194d62021..cf96a61dbb4323bff5c37047bbc5a918bf0fcca5 100644 (file)
@@ -1968,6 +1968,9 @@ static bool manager_dbus_is_running(Manager *m, bool deserialized) {
 static void manager_setup_bus(Manager *m) {
         assert(m);
 
+        if (MANAGER_IS_TEST_RUN(m))
+                return;
+
         /* Let's set up our private bus connection now, unconditionally */
         (void) bus_init_private(m);