mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
lib/oeqa/runtime/systemd: Add a basic runtime test for the journal
The test_systemd_journal() test will fail if journalctl exits with a non-zero exit status. The exit status is non-zero even if there are no journal files, which is what drove the creation of this test. [Yocto #7388] (From OE-Core rev: 27baa182d44872f84bee3da36b95997ce0597d89) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
313ad2a5cc
commit
cd5e168a8f
@@ -86,3 +86,9 @@ class SystemdServiceTests(SystemdTest):
|
||||
self.systemctl('is-enabled', 'avahi-daemon.service', expected=1)
|
||||
self.systemctl('enable', 'avahi-daemon.service')
|
||||
self.systemctl('is-enabled', 'avahi-daemon.service')
|
||||
|
||||
class SystemdJournalTests(SystemdTest):
|
||||
@skipUnlessPassed('test_ssh')
|
||||
def test_systemd_journal(self):
|
||||
(status, output) = self.target.run('journalctl')
|
||||
self.assertEqual(status, 0, output)
|
||||
|
||||
Reference in New Issue
Block a user