diff options
author | Randy Witt <randy.e.witt@linux.intel.com> | 2015-03-09 13:04:14 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-16 17:41:51 +0000 |
commit | cd5e168a8fe8351acee110371913cf063bbd8688 (patch) | |
tree | c18670cff82b8218ac18ec7011f8bd8dcd280ca5 /meta/lib/oeqa | |
parent | 313ad2a5cc30269041acf0450e1dd2f467f37237 (diff) | |
download | poky-cd5e168a8fe8351acee110371913cf063bbd8688.tar.gz |
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>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/runtime/systemd.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/systemd.py b/meta/lib/oeqa/runtime/systemd.py index 1451698bb3..5935edd549 100644 --- a/meta/lib/oeqa/runtime/systemd.py +++ b/meta/lib/oeqa/runtime/systemd.py | |||
@@ -86,3 +86,9 @@ class SystemdServiceTests(SystemdTest): | |||
86 | self.systemctl('is-enabled', 'avahi-daemon.service', expected=1) | 86 | self.systemctl('is-enabled', 'avahi-daemon.service', expected=1) |
87 | self.systemctl('enable', 'avahi-daemon.service') | 87 | self.systemctl('enable', 'avahi-daemon.service') |
88 | self.systemctl('is-enabled', 'avahi-daemon.service') | 88 | self.systemctl('is-enabled', 'avahi-daemon.service') |
89 | |||
90 | class SystemdJournalTests(SystemdTest): | ||
91 | @skipUnlessPassed('test_ssh') | ||
92 | def test_systemd_journal(self): | ||
93 | (status, output) = self.target.run('journalctl') | ||
94 | self.assertEqual(status, 0, output) | ||