oeqa/selftest/bbclasses: Drop systemd+sysvinit test
PATCH 1/2 oeqa/selftest/bbclasses: Drop systemd+sysvinit test
This configuration is no longer possible with recent systemd changes, drop the test.
Signed-off-by Richard Purdie <[email protected]>
--- meta/lib/oeqa/selftest/cases/bbclasses.py | 23 ----------------------- 1 file changed, 23 deletions(-)
meta/lib/oeqa/selftest/cases/bbclasses.py +0 -23
@@ -54,29 +54,6 @@ VIRTUAL-RUNTIME_init_manager = "systemd" self.fileExists("{D}{systemd_system_unitdir}/{BPN}.service") self.fileNotExists("{D}{sysconfdir}") - def test_systemd_and_sysvinit_in_distro(self): - """ - Summary: Verify that both systemd and sysvinit files are installed - when both the systemd and sysvinit distro features are - enabled. - Expected: Systemd service file and sysvinit initscript exist. - Product: OE-Core - Author: Peter Kjellerstedt <[email protected]> - """ - - self.write_config(""" -DISTRO_FEATURES:append = " systemd sysvinit usrmerge" -VIRTUAL-RUNTIME_init_manager = "systemd" -""") - bitbake("systemd-only systemd-and-sysvinit -c install") - - self.getVars("systemd-only") - self.fileExists("{D}{systemd_system_unitdir}/{BPN}.service") - - self.getVars("systemd-and-sysvinit") - self.fileExists("{D}{systemd_system_unitdir}/{BPN}.service") - self.fileExists("{D}{INIT_D_DIR}/{BPN}") - def test_sysvinit_in_distro(self): """ Summary: Verify that no systemd service files are installed when the
PATCH 2/2 oeqa/selftest/overlayfs: Improve systemd test configuration
We need to ensure that sysvinit and systemd are not enabled together. Tweak the tests to use INIT_MANAGER to correctly achieve this.
Signed-off-by Richard Purdie <[email protected]>
--- meta/lib/oeqa/selftest/cases/overlayfs.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
meta/lib/oeqa/selftest/cases/overlayfs.py +8 -4
@@ -58,7 +58,8 @@ inherit overlayfs config = """ IMAGE_INSTALL:append = " overlayfs-user" -DISTRO_FEATURES:append = " systemd overlayfs usrmerge" +INIT_MANAGER = "systemd" +DISTRO_FEATURES:append = " overlayfs" """ self.write_config(config)
@@ -79,7 +80,8 @@ DISTRO_FEATURES:append = " systemd overlayfs usrmerge" config = """ IMAGE_INSTALL:append = " overlayfs-user" -DISTRO_FEATURES:append = " systemd overlayfs usrmerge" +INIT_MANAGER = "systemd" +DISTRO_FEATURES:append = " overlayfs" OVERLAYFS_QA_SKIP[mnt-overlay] = "mount-configured" """
@@ -97,7 +99,8 @@ OVERLAYFS_QA_SKIP[mnt-overlay] = "mount-configured" config = """ IMAGE_INSTALL:append = " overlayfs-user" -DISTRO_FEATURES:append = " systemd overlayfs usrmerge" +INIT_MANAGER = "systemd" +DISTRO_FEATURES:append = " overlayfs" """ self.write_config(config)
@@ -115,7 +118,8 @@ DISTRO_FEATURES:append = " systemd overlayfs usrmerge" config = """ IMAGE_INSTALL:append = " overlayfs-user" -DISTRO_FEATURES:append = " systemd overlayfs usrmerge" +INIT_MANAGER = "systemd" +DISTRO_FEATURES:append = " overlayfs" """ wrong_machine_config = """