summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/syslog.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime/syslog.py')
-rw-r--r--meta/lib/oeqa/runtime/syslog.py3
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
9class SyslogTest(oeRuntimeTest): 9class 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
23class SyslogTestConfig(oeRuntimeTest): 24class 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):