TestLogManager.logCap fails when journal sync is enabled
anoo1 opened this issue · 0 comments
anoo1 commented
With commit https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-logging/+/12357/ , the journal sync function was fixed to run even when the synced file didn't exist. This causes the unit test that calls commit to fail.
It seems the journal sync interface was mocked to work with the unit test cases ( https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-logging/+/11279/ ) but maybe something else is needed.
Error:
17:54:39 [ RUN ] TestLogManager.logCap
17:54:39 unknown file: Failure
17:54:39 C++ exception with description "sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.systemd1 was not provided by any .service files" thrown in the test body.
17:54:39 [ FAILED ] TestLogManager.logCap (16 ms)