diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/syslog.py')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/syslog.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/syslog.py b/meta/lib/oeqa/runtime/cases/syslog.py index 1016e67e93..537c519482 100644 --- a/meta/lib/oeqa/runtime/cases/syslog.py +++ b/meta/lib/oeqa/runtime/cases/syslog.py | |||
@@ -34,6 +34,15 @@ class SyslogTestConfig(OERuntimeTestCase): | |||
34 | ' Output: %s ' % output) | 34 | ' Output: %s ' % output) |
35 | self.assertEqual(status, 0, msg=msg) | 35 | self.assertEqual(status, 0, msg=msg) |
36 | 36 | ||
37 | @OETestID(1150) | ||
38 | @OETestDepends(['syslog.SyslogTest.test_syslog_running']) | ||
39 | def test_syslog_restart(self): | ||
40 | if "systemd" != self.tc.td.get("VIRTUAL-RUNTIME_init_manager", ""): | ||
41 | (_, _) = self.target.run('/etc/init.d/syslog restart') | ||
42 | else: | ||
43 | (_, _) = self.target.run('systemctl restart syslog.service') | ||
44 | |||
45 | |||
37 | @OETestID(202) | 46 | @OETestID(202) |
38 | @OETestDepends(['syslog.SyslogTestConfig.test_syslog_logger']) | 47 | @OETestDepends(['syslog.SyslogTestConfig.test_syslog_logger']) |
39 | @OEHasPackage(["!sysklogd", "busybox"]) | 48 | @OEHasPackage(["!sysklogd", "busybox"]) |