poky/meta/lib/oeqa/runtime
Chen Qi e77d45609a oe_syslog.py: fix for syslog-ng
When using syslog-ng as the syslog provider, oe_syslog test case fails
because it cannot find the syslog daemon. This is because it greps for
'syslogd' but syslog-ng's daemon is 'syslog-ng'. So fix it to check both
'syslogd' and 'syslog-ng'.

Also, when the test case fails, what I get is:
| AssertionError: 1 != 0 : No syslogd process; ps output:
<empty here>

This does not help user. The output is actually from the 'PS | GREP' command.
And when the 'PS | GREP' command fails, the output is always empty. So also fix
this problem. After the change, it looks like:
| AssertionError: False is not true : No syslog daemon process; ps output:
|   PID USER       VSZ STAT COMMAND
|     1 root     16476 S    {systemd} /sbin/init
|     2 root         0 SW   [kthreadd]
|     3 root         0 IW   [kworker/0:0]
...

(From OE-Core rev: b180fbd9d93db1c6351e183fbc08fc81cdc240c0)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-08 10:51:59 +01:00
..
cases oe_syslog.py: fix for syslog-ng 2018-08-08 10:51:59 +01:00
decorator oeqa/runtime: Add OEHasPackage decorator 2017-01-23 12:05:20 +00:00
files oeqa/runtime/stap.py: add runtime test for systemtap 2018-04-18 18:57:06 +01:00
utils oeqa/runtime/utils/targetbuildproject: use parent classes defaults tmpdir 2017-04-06 10:13:39 +01:00
case.py oeqa/runtime/case: Don't use OEQA framework internal methods 2017-06-02 13:36:14 +01:00
context.py oeqa/runtime/context.py: Add support to specify port in target_ip 2017-06-06 19:02:44 +01:00
loader.py oeqa/runtime: Add case, context and loader classes for runtime testing 2017-01-23 12:05:20 +00:00