diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-07-31 09:25:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-31 22:47:35 +0100 |
commit | b195bff2048701243b6ec236519636c4039a1bb4 (patch) | |
tree | 320d6b0a969e7ea2834a6c04375ae6868addf1b5 /meta | |
parent | 318595754b66e8e4f3db1bce1ac086a2409e2eca (diff) | |
download | poky-b195bff2048701243b6ec236519636c4039a1bb4.tar.gz |
oe_syslog.py: fix settings in OEHasPackage decorator
1. For test_syslog_running, we should not restrict it to run for
only busybox-syslog and sysklogd. So extend it to all syslog
providers in oe-core and meta-openembedded.
2. For test_syslog_startup_config, fix to make it depend on the
existence of busybox-syslog. The previous condition "!sysklogd
&& busybox" is incorrect, because busybox may be compiled without
syslog support, and sysklogd and busybox-syslog conflict with
each other.
(From OE-Core rev: 119c22342d446e4f638b8d4c81480ebc7b444245)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/oe_syslog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/oe_syslog.py b/meta/lib/oeqa/runtime/cases/oe_syslog.py index 005b6978d9..935f10f0f3 100644 --- a/meta/lib/oeqa/runtime/cases/oe_syslog.py +++ b/meta/lib/oeqa/runtime/cases/oe_syslog.py | |||
@@ -8,7 +8,7 @@ class SyslogTest(OERuntimeTestCase): | |||
8 | 8 | ||
9 | @OETestID(201) | 9 | @OETestID(201) |
10 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 10 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
11 | @OEHasPackage(["busybox-syslog", "sysklogd"]) | 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 | cmd = '%s | grep -i [s]yslogd' % self.tc.target_cmds['ps'] |
14 | status, output = self.target.run(cmd) | 14 | status, output = self.target.run(cmd) |
@@ -45,7 +45,7 @@ class SyslogTestConfig(OERuntimeTestCase): | |||
45 | 45 | ||
46 | @OETestID(202) | 46 | @OETestID(202) |
47 | @OETestDepends(['oe_syslog.SyslogTestConfig.test_syslog_logger']) | 47 | @OETestDepends(['oe_syslog.SyslogTestConfig.test_syslog_logger']) |
48 | @OEHasPackage(["!sysklogd", "busybox"]) | 48 | @OEHasPackage(["busybox-syslog"]) |
49 | @skipIfDataVar('VIRTUAL-RUNTIME_init_manager', 'systemd', | 49 | @skipIfDataVar('VIRTUAL-RUNTIME_init_manager', 'systemd', |
50 | 'Not appropiate for systemd image') | 50 | 'Not appropiate for systemd image') |
51 | def test_syslog_startup_config(self): | 51 | def test_syslog_startup_config(self): |