summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/selftest/runtime-test.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/runtime-test.py b/meta/lib/oeqa/selftest/runtime-test.py
index e498d046cf..13a4c03a15 100644
--- a/meta/lib/oeqa/selftest/runtime-test.py
+++ b/meta/lib/oeqa/selftest/runtime-test.py
@@ -203,11 +203,12 @@ postinst-delayed-t \
203 rootfs_pkg = 'postinst-at-rootfs' 203 rootfs_pkg = 'postinst-at-rootfs'
204 boot_pkg = 'postinst-delayed-a' 204 boot_pkg = 'postinst-delayed-a'
205 #Step 1 205 #Step 1
206 features = 'MACHINE = "qemux86"\n' 206 common_features = 'MACHINE = "qemux86"\n'
207 features += 'CORE_IMAGE_EXTRA_INSTALL += "%s %s "\n'% (rootfs_pkg, boot_pkg) 207 common_features += 'CORE_IMAGE_EXTRA_INSTALL += "%s %s "\n'% (rootfs_pkg, boot_pkg)
208 features += 'IMAGE_FEATURES += "ssh-server-openssh"\n' 208 common_features += 'IMAGE_FEATURES += "ssh-server-openssh"\n'
209 for init_manager in ("sysvinit", "systemd"): 209 for init_manager in ("sysvinit", "systemd"):
210 #for sysvinit no extra configuration is needed, 210 #for sysvinit no extra configuration is needed,
211 features = ''
211 if (init_manager is "systemd"): 212 if (init_manager is "systemd"):
212 features += 'DISTRO_FEATURES_append = " systemd"\n' 213 features += 'DISTRO_FEATURES_append = " systemd"\n'
213 features += 'VIRTUAL-RUNTIME_init_manager = "systemd"\n' 214 features += 'VIRTUAL-RUNTIME_init_manager = "systemd"\n'
@@ -217,7 +218,7 @@ postinst-delayed-t \
217 "package_deb package_rpm package_ipk", 218 "package_deb package_rpm package_ipk",
218 "package_ipk package_deb package_rpm"): 219 "package_ipk package_deb package_rpm"):
219 features += 'PACKAGE_CLASSES = "%s"\n' % classes 220 features += 'PACKAGE_CLASSES = "%s"\n' % classes
220 self.write_config(features) 221 self.write_config(common_features + features)
221 222
222 #Step 2 223 #Step 2
223 bitbake('core-image-minimal') 224 bitbake('core-image-minimal')