mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
manager: tweak manager_journal_is_running() a bit regarding test mode
In test mode, let's not consider the journal to be up ever: we want all output to go to stderr.
This commit is contained in:
parent
8559b3b75c
commit
7d814a197a
@ -3569,6 +3569,9 @@ static bool manager_journal_is_running(Manager *m) {
|
||||
|
||||
assert(m);
|
||||
|
||||
if (m->test_run_flags != 0)
|
||||
return false;
|
||||
|
||||
/* If we are the user manager we can safely assume that the journal is up */
|
||||
if (!MANAGER_IS_SYSTEM(m))
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user