mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
oeqa/rutime: Added testcase decorators for automated runtime tests. Also added LogResults decorator for oeTest class in oetest.py
(From OE-Core rev: 95b83084487d0712362ade8ac487999c3274bb96) Signed-off-by: Lucian Musat <georgex.l.musat@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
242cceeedf
commit
8e26ab7d52
@@ -13,6 +13,7 @@ class SyslogTest(oeRuntimeTest):
|
||||
(status,output) = self.target.run('/sbin/syslogd --help')
|
||||
self.assertEqual(status, 0, msg="status and output: %s and %s" % (status,output))
|
||||
|
||||
@testcase(201)
|
||||
@skipUnlessPassed("test_syslog_help")
|
||||
def test_syslog_running(self):
|
||||
(status,output) = self.target.run(oeRuntimeTest.pscmd + ' | grep -i [s]yslogd')
|
||||
@@ -33,6 +34,7 @@ class SyslogTestConfig(oeRuntimeTest):
|
||||
else:
|
||||
(status,output) = self.target.run('systemctl restart syslog.service')
|
||||
|
||||
@testcase(202)
|
||||
@skipUnlessPassed("test_syslog_restart")
|
||||
@skipUnlessPassed("test_syslog_logger")
|
||||
@unittest.skipIf("systemd" == oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager"), "Not appropiate for systemd image")
|
||||
|
||||
Reference in New Issue
Block a user