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:
Lennart Poettering 2018-02-07 15:06:15 +01:00
parent 8559b3b75c
commit 7d814a197a
1 changed files with 3 additions and 0 deletions

View File

@ -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;