diff options
author | Lucian Musat <georgex.l.musat@intel.com> | 2014-07-25 12:02:30 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-25 16:54:42 +0100 |
commit | 8e26ab7d52edd13ffa50b2d0b26606bea8890e76 (patch) | |
tree | 2b2bcfc87341d3a5136710c8412fb6348ce2069d /meta/lib/oeqa/runtime/syslog.py | |
parent | 242cceeedf2351e4337d8e45fb4c2c8360937ead (diff) | |
download | poky-8e26ab7d52edd13ffa50b2d0b26606bea8890e76.tar.gz |
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>
Diffstat (limited to 'meta/lib/oeqa/runtime/syslog.py')
-rw-r--r-- | meta/lib/oeqa/runtime/syslog.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py index b95b36175a..7fa018e97f 100644 --- a/meta/lib/oeqa/runtime/syslog.py +++ b/meta/lib/oeqa/runtime/syslog.py | |||
@@ -13,6 +13,7 @@ class SyslogTest(oeRuntimeTest): | |||
13 | (status,output) = self.target.run('/sbin/syslogd --help') | 13 | (status,output) = self.target.run('/sbin/syslogd --help') |
14 | self.assertEqual(status, 0, msg="status and output: %s and %s" % (status,output)) | 14 | self.assertEqual(status, 0, msg="status and output: %s and %s" % (status,output)) |
15 | 15 | ||
16 | @testcase(201) | ||
16 | @skipUnlessPassed("test_syslog_help") | 17 | @skipUnlessPassed("test_syslog_help") |
17 | def test_syslog_running(self): | 18 | def test_syslog_running(self): |
18 | (status,output) = self.target.run(oeRuntimeTest.pscmd + ' | grep -i [s]yslogd') | 19 | (status,output) = self.target.run(oeRuntimeTest.pscmd + ' | grep -i [s]yslogd') |
@@ -33,6 +34,7 @@ class SyslogTestConfig(oeRuntimeTest): | |||
33 | else: | 34 | else: |
34 | (status,output) = self.target.run('systemctl restart syslog.service') | 35 | (status,output) = self.target.run('systemctl restart syslog.service') |
35 | 36 | ||
37 | @testcase(202) | ||
36 | @skipUnlessPassed("test_syslog_restart") | 38 | @skipUnlessPassed("test_syslog_restart") |
37 | @skipUnlessPassed("test_syslog_logger") | 39 | @skipUnlessPassed("test_syslog_logger") |
38 | @unittest.skipIf("systemd" == oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager"), "Not appropiate for systemd image") | 40 | @unittest.skipIf("systemd" == oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager"), "Not appropiate for systemd image") |