diff options
author | Lucian Musat <george.l.musat@intel.com> | 2015-07-17 12:54:36 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-23 08:48:38 +0100 |
commit | cc2202b8b45ccdce16256cac3780aa7a546a882f (patch) | |
tree | 21fd2367df17f4471b38fcea0a68db71b1c98842 /meta/lib/oeqa/runtime/syslog.py | |
parent | 1bfb9327b7d7bba5b739483ee8571f1fe8263197 (diff) | |
download | poky-cc2202b8b45ccdce16256cac3780aa7a546a882f.tar.gz |
oeqa/runtime: Added decorators for the remaining auto tests.
This helps for the automatic completion of the results in testopia.
(From OE-Core rev: 9148e5873a79ea3ef64f00cf9807fae99bf3040a)
Signed-off-by: Lucian Musat <george.l.musat@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/runtime/syslog.py')
-rw-r--r-- | meta/lib/oeqa/runtime/syslog.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py index 5d0f548c99..31cd6b0139 100644 --- a/meta/lib/oeqa/runtime/syslog.py +++ b/meta/lib/oeqa/runtime/syslog.py | |||
@@ -8,6 +8,7 @@ def setUpModule(): | |||
8 | 8 | ||
9 | class SyslogTest(oeRuntimeTest): | 9 | class SyslogTest(oeRuntimeTest): |
10 | 10 | ||
11 | @testcase(1148) | ||
11 | @skipUnlessPassed("test_ssh") | 12 | @skipUnlessPassed("test_ssh") |
12 | def test_syslog_help(self): | 13 | def test_syslog_help(self): |
13 | (status,output) = self.target.run('/sbin/syslogd --help') | 14 | (status,output) = self.target.run('/sbin/syslogd --help') |
@@ -22,11 +23,13 @@ class SyslogTest(oeRuntimeTest): | |||
22 | 23 | ||
23 | class SyslogTestConfig(oeRuntimeTest): | 24 | class SyslogTestConfig(oeRuntimeTest): |
24 | 25 | ||
26 | @testcase(1149) | ||
25 | @skipUnlessPassed("test_syslog_running") | 27 | @skipUnlessPassed("test_syslog_running") |
26 | def test_syslog_logger(self): | 28 | def test_syslog_logger(self): |
27 | (status,output) = self.target.run('logger foobar && test -e /var/log/messages && grep foobar /var/log/messages || logread | grep foobar') | 29 | (status,output) = self.target.run('logger foobar && test -e /var/log/messages && grep foobar /var/log/messages || logread | grep foobar') |
28 | self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output) | 30 | self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output) |
29 | 31 | ||
32 | @testcase(1150) | ||
30 | @skipUnlessPassed("test_syslog_running") | 33 | @skipUnlessPassed("test_syslog_running") |
31 | def test_syslog_restart(self): | 34 | def test_syslog_restart(self): |
32 | if "systemd" != oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", False): | 35 | if "systemd" != oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", False): |