diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-04-27 13:36:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-16 14:08:28 +0100 |
commit | 9f269d1e51ba0a7af412860cebf7827357cf9758 (patch) | |
tree | 1b50dd9a800da80df229040aae8e9f1633940c26 /meta/lib/oeqa | |
parent | 6830a969f27814b76c2cbab56b8957c532b76487 (diff) | |
download | poky-9f269d1e51ba0a7af412860cebf7827357cf9758.tar.gz |
selftest/runtime-test: Split the config values
Split the configuration values (common and specific) so it is easier to read
what goes into the config file. Also the specific configurations are
set in every loop so these do not append on each iteration.
(From OE-Core rev: 58d43b470ffa9b498234b6845cacfd867218ca03)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/runtime-test.py | 9 |
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') |