oeqa/runtime/cases: Rename syslog module to oe_syslog
Debian based distros has a builtin syslog module so when try to load tests using unittest it references the builtin module instead of runtime/cases. [YOCTO #10964] (From OE-Core rev: 9923e3cdb58c2b3c54ec5fe99b2cec4cdc9fff92) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3eef8f7955
commit
90b4e075f4
|
@ -38,7 +38,7 @@ TEST_PACKAGED_DIR ?= "${TEST_NEEDED_PACKAGES_DIR}/packaged"
|
|||
RPMTESTSUITE = "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'smart rpm', '', d)}"
|
||||
SYSTEMDSUITE = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
|
||||
MINTESTSUITE = "ping"
|
||||
NETTESTSUITE = "${MINTESTSUITE} ssh df date scp syslog ${SYSTEMDSUITE}"
|
||||
NETTESTSUITE = "${MINTESTSUITE} ssh df date scp oe_syslog ${SYSTEMDSUITE}"
|
||||
DEVTESTSUITE = "gcc kernelmodule ldd"
|
||||
|
||||
DEFAULT_TEST_SUITES = "${MINTESTSUITE} auto"
|
||||
|
|
|
@ -18,7 +18,7 @@ class SyslogTest(OERuntimeTestCase):
|
|||
class SyslogTestConfig(OERuntimeTestCase):
|
||||
|
||||
@OETestID(1149)
|
||||
@OETestDepends(['syslog.SyslogTest.test_syslog_running'])
|
||||
@OETestDepends(['oe_syslog.SyslogTest.test_syslog_running'])
|
||||
def test_syslog_logger(self):
|
||||
status, output = self.target.run('logger foobar')
|
||||
msg = "Can't log into syslog. Output: %s " % output
|
||||
|
@ -35,7 +35,7 @@ class SyslogTestConfig(OERuntimeTestCase):
|
|||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
@OETestID(1150)
|
||||
@OETestDepends(['syslog.SyslogTest.test_syslog_running'])
|
||||
@OETestDepends(['oe_syslog.SyslogTest.test_syslog_running'])
|
||||
def test_syslog_restart(self):
|
||||
if "systemd" != self.tc.td.get("VIRTUAL-RUNTIME_init_manager", ""):
|
||||
(_, _) = self.target.run('/etc/init.d/syslog restart')
|
||||
|
@ -44,7 +44,7 @@ class SyslogTestConfig(OERuntimeTestCase):
|
|||
|
||||
|
||||
@OETestID(202)
|
||||
@OETestDepends(['syslog.SyslogTestConfig.test_syslog_logger'])
|
||||
@OETestDepends(['oe_syslog.SyslogTestConfig.test_syslog_logger'])
|
||||
@OEHasPackage(["!sysklogd", "busybox"])
|
||||
@skipIfDataVar('VIRTUAL-RUNTIME_init_manager', 'systemd',
|
||||
'Not appropiate for systemd image')
|
Loading…
Reference in New Issue