oeqa: Recognise svlogd as another logger

Message ID 20190907183022.6811-1-raj.khem@gmail.com
State New
Headers show
Series
  • oeqa: Recognise svlogd as another logger
Related show

Commit Message

Khem Raj Sept. 7, 2019, 6:30 p.m.
This is provided by runit which another init system like systemd,
sysvinit, this lets oeqa run on systems which are using runit

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/lib/oeqa/runtime/cases/oe_syslog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.23.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Khem Raj Sept. 7, 2019, 6:31 p.m. | #1
this has been applied, ignore it

On Sat, Sep 7, 2019 at 11:30 AM Khem Raj <raj.khem@gmail.com> wrote:
>

> This is provided by runit which another init system like systemd,

> sysvinit, this lets oeqa run on systems which are using runit

>

> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>  meta/lib/oeqa/runtime/cases/oe_syslog.py | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/meta/lib/oeqa/runtime/cases/oe_syslog.py b/meta/lib/oeqa/runtime/cases/oe_syslog.py

> index 3a8271a53a..f3c2bedbaf 100644

> --- a/meta/lib/oeqa/runtime/cases/oe_syslog.py

> +++ b/meta/lib/oeqa/runtime/cases/oe_syslog.py

> @@ -17,7 +17,7 @@ class SyslogTest(OERuntimeTestCase):

>          msg = "Failed to execute %s" % self.tc.target_cmds['ps']

>          self.assertEqual(status, 0, msg=msg)

>          msg = "No syslog daemon process; %s output:\n%s" % (self.tc.target_cmds['ps'], output)

> -        hasdaemon = "syslogd" in output or "syslog-ng" in output

> +        hasdaemon = "syslogd" in output or "syslog-ng" in output or "svlogd" in output

>          self.assertTrue(hasdaemon, msg=msg)

>

>  class SyslogTestConfig(OERuntimeTestCase):

> --

> 2.23.0

>

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/lib/oeqa/runtime/cases/oe_syslog.py b/meta/lib/oeqa/runtime/cases/oe_syslog.py
index 3a8271a53a..f3c2bedbaf 100644
--- a/meta/lib/oeqa/runtime/cases/oe_syslog.py
+++ b/meta/lib/oeqa/runtime/cases/oe_syslog.py
@@ -17,7 +17,7 @@  class SyslogTest(OERuntimeTestCase):
         msg = "Failed to execute %s" % self.tc.target_cmds['ps']
         self.assertEqual(status, 0, msg=msg)
         msg = "No syslog daemon process; %s output:\n%s" % (self.tc.target_cmds['ps'], output)
-        hasdaemon = "syslogd" in output or "syslog-ng" in output
+        hasdaemon = "syslogd" in output or "syslog-ng" in output or "svlogd" in output
         self.assertTrue(hasdaemon, msg=msg)
 
 class SyslogTestConfig(OERuntimeTestCase):