diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-11 15:26:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 11:46:26 +0100 |
commit | a74792b15dd6365d404f2e55f1e7a0ba7c2d129d (patch) | |
tree | 97fdeb7f16f7a77daca5c336c62f0067cd0caf7d /meta | |
parent | 0b7567d577fd63ac6a40dac01489be106a34e184 (diff) | |
download | poky-a74792b15dd6365d404f2e55f1e7a0ba7c2d129d.tar.gz |
selftest/runtime_test/incompatible_lic: Use IMAGE_CLASSES for testimage
testimage should be included via IMAGE_CLASSES, not globally with INHERIT.
(From OE-Core rev: 4cdb29c7342b16a6c9294268a674a1414eed88e5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/incompatible_lic.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py index 6279d74245..3521849158 100644 --- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py +++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py | |||
@@ -134,7 +134,7 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*" | |||
134 | 134 | ||
135 | def test_core_image_full_cmdline_weston(self): | 135 | def test_core_image_full_cmdline_weston(self): |
136 | self.write_config(""" | 136 | self.write_config(""" |
137 | INHERIT += "testimage" | 137 | IMAGE_CLASSES += "testimage" |
138 | INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0* LGPL-3.0*" | 138 | INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0* LGPL-3.0*" |
139 | INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0* LGPL-3.0*" | 139 | INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0* LGPL-3.0*" |
140 | # Settings for full-cmdline | 140 | # Settings for full-cmdline |
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py index 857737f730..70fff6c654 100644 --- a/meta/lib/oeqa/selftest/cases/runtime_test.py +++ b/meta/lib/oeqa/selftest/cases/runtime_test.py | |||
@@ -119,7 +119,7 @@ class TestImage(OESelftestTestCase): | |||
119 | if get_bb_var('DISTRO') == 'poky-tiny': | 119 | if get_bb_var('DISTRO') == 'poky-tiny': |
120 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') | 120 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') |
121 | 121 | ||
122 | features = 'INHERIT += "testimage"\n' | 122 | features = 'IMAGE_CLASSES += "testimage"\n' |
123 | features += 'IMAGE_INSTALL:append = " libssl"\n' | 123 | features += 'IMAGE_INSTALL:append = " libssl"\n' |
124 | features += 'TEST_SUITES = "ping ssh selftest"\n' | 124 | features += 'TEST_SUITES = "ping ssh selftest"\n' |
125 | self.write_config(features) | 125 | self.write_config(features) |
@@ -137,7 +137,7 @@ class TestImage(OESelftestTestCase): | |||
137 | if get_bb_var('DISTRO') == 'poky-tiny': | 137 | if get_bb_var('DISTRO') == 'poky-tiny': |
138 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') | 138 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') |
139 | 139 | ||
140 | features = 'INHERIT += "testimage"\n' | 140 | features = 'IMAGE_CLASSES += "testimage"\n' |
141 | features += 'TEST_SUITES = "ping ssh dnf_runtime dnf.DnfBasicTest.test_dnf_help"\n' | 141 | features += 'TEST_SUITES = "ping ssh dnf_runtime dnf.DnfBasicTest.test_dnf_help"\n' |
142 | # We don't yet know what the server ip and port will be - they will be patched | 142 | # We don't yet know what the server ip and port will be - they will be patched |
143 | # in at the start of the on-image test | 143 | # in at the start of the on-image test |
@@ -172,7 +172,7 @@ class TestImage(OESelftestTestCase): | |||
172 | if get_bb_var('DISTRO') == 'poky-tiny': | 172 | if get_bb_var('DISTRO') == 'poky-tiny': |
173 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') | 173 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') |
174 | 174 | ||
175 | features = 'INHERIT += "testimage"\n' | 175 | features = 'IMAGE_CLASSES += "testimage"\n' |
176 | features += 'TEST_SUITES = "ping ssh apt.AptRepoTest.test_apt_install_from_repo"\n' | 176 | features += 'TEST_SUITES = "ping ssh apt.AptRepoTest.test_apt_install_from_repo"\n' |
177 | # We don't yet know what the server ip and port will be - they will be patched | 177 | # We don't yet know what the server ip and port will be - they will be patched |
178 | # in at the start of the on-image test | 178 | # in at the start of the on-image test |
@@ -222,7 +222,7 @@ class TestImage(OESelftestTestCase): | |||
222 | 222 | ||
223 | qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') | 223 | qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') |
224 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') | 224 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') |
225 | features = 'INHERIT += "testimage"\n' | 225 | features = 'IMAGE_CLASSES += "testimage"\n' |
226 | if 'gtk+' not in qemu_packageconfig: | 226 | if 'gtk+' not in qemu_packageconfig: |
227 | features += 'PACKAGECONFIG:append:pn-qemu-system-native = " gtk+"\n' | 227 | features += 'PACKAGECONFIG:append:pn-qemu-system-native = " gtk+"\n' |
228 | if 'sdl' not in qemu_packageconfig: | 228 | if 'sdl' not in qemu_packageconfig: |
@@ -267,7 +267,7 @@ class TestImage(OESelftestTestCase): | |||
267 | except subprocess.CalledProcessError as e: | 267 | except subprocess.CalledProcessError as e: |
268 | self.fail("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.") | 268 | self.fail("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.") |
269 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') | 269 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') |
270 | features = 'INHERIT += "testimage"\n' | 270 | features = 'IMAGE_CLASSES += "testimage"\n' |
271 | if 'opengl' not in qemu_distrofeatures: | 271 | if 'opengl' not in qemu_distrofeatures: |
272 | features += 'DISTRO_FEATURES:append = " opengl"\n' | 272 | features += 'DISTRO_FEATURES:append = " opengl"\n' |
273 | features += 'TEST_SUITES = "ping ssh virgl"\n' | 273 | features += 'TEST_SUITES = "ping ssh virgl"\n' |