diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/oe_syslog.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/cases/oe_syslog.py b/meta/lib/oeqa/runtime/cases/oe_syslog.py index 935f10f0f3..a92a1f2bcb 100644 --- a/meta/lib/oeqa/runtime/cases/oe_syslog.py +++ b/meta/lib/oeqa/runtime/cases/oe_syslog.py | |||
@@ -10,10 +10,12 @@ class SyslogTest(OERuntimeTestCase): | |||
10 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 10 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
11 | @OEHasPackage(["busybox-syslog", "sysklogd", "rsyslog", "syslog-ng"]) | 11 | @OEHasPackage(["busybox-syslog", "sysklogd", "rsyslog", "syslog-ng"]) |
12 | def test_syslog_running(self): | 12 | def test_syslog_running(self): |
13 | cmd = '%s | grep -i [s]yslogd' % self.tc.target_cmds['ps'] | 13 | status, output = self.target.run(self.tc.target_cmds['ps']) |
14 | status, output = self.target.run(cmd) | 14 | msg = "Failed to execute %s" % self.tc.target_cmds['ps'] |
15 | msg = "No syslogd process; ps output: %s" % output | ||
16 | self.assertEqual(status, 0, msg=msg) | 15 | self.assertEqual(status, 0, msg=msg) |
16 | msg = "No syslog daemon process; %s output:\n%s" % (self.tc.target_cmds['ps'], output) | ||
17 | hasdaemon = "syslogd" in output or "syslog-ng" in output | ||
18 | self.assertTrue(hasdaemon, msg=msg) | ||
17 | 19 | ||
18 | class SyslogTestConfig(OERuntimeTestCase): | 20 | class SyslogTestConfig(OERuntimeTestCase): |
19 | 21 | ||