diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 14:27:33 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
| commit | 65133015b1cf545a0c86177ce471a0b2b9340d5c (patch) | |
| tree | 2d24b99d759e7b7e611217dcc686ae0fe85a671e /meta/lib/oeqa | |
| parent | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (diff) | |
| download | poky-65133015b1cf545a0c86177ce471a0b2b9340d5c.tar.gz | |
meta: Manual override fixes
The automated conversion of OE-Core to use the new override sytax isn't
perfect. This patches some mis-converted lines and some lines which were missed
by the automation.
(From OE-Core rev: 4e9a06b64b43131b731fb59a0305f78a98e27fbd)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/efibootpartition.py | 2 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/incompatible_lic.py | 6 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 4 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/meta/lib/oeqa/selftest/cases/efibootpartition.py b/meta/lib/oeqa/selftest/cases/efibootpartition.py index 3203a7b71d..26de3a07c9 100644 --- a/meta/lib/oeqa/selftest/cases/efibootpartition.py +++ b/meta/lib/oeqa/selftest/cases/efibootpartition.py | |||
| @@ -26,7 +26,7 @@ class GenericEFITest(OESelftestTestCase): | |||
| 26 | self.write_config(self, | 26 | self.write_config(self, |
| 27 | """ | 27 | """ |
| 28 | EFI_PROVIDER = "%s" | 28 | EFI_PROVIDER = "%s" |
| 29 | IMAGE_FSTYPES:pn-%s_append = " wic" | 29 | IMAGE_FSTYPES:pn-%s:append = " wic" |
| 30 | MACHINE = "%s" | 30 | MACHINE = "%s" |
| 31 | MACHINE_FEATURES:append = " efi" | 31 | MACHINE_FEATURES:append = " efi" |
| 32 | WKS_FILE = "efi-bootdisk.wks.in" | 32 | WKS_FILE = "efi-bootdisk.wks.in" |
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py index 93be434650..aa8e085754 100644 --- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py +++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py | |||
| @@ -98,7 +98,7 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0 LGPL-3.0" | |||
| 98 | raise AssertionError(result.output) | 98 | raise AssertionError(result.output) |
| 99 | 99 | ||
| 100 | def test_bash_and_license(self): | 100 | def test_bash_and_license(self): |
| 101 | self.write_config(self.default_config() + '\nLICENSE_append_pn-bash = " & SomeLicense"') | 101 | self.write_config(self.default_config() + '\nLICENSE:append:pn-bash = " & SomeLicense"') |
| 102 | error_msg = "ERROR: core-image-minimal-1.0-r0 do_rootfs: Package bash cannot be installed into the image because it has incompatible license(s): GPL-3.0-or-later" | 102 | error_msg = "ERROR: core-image-minimal-1.0-r0 do_rootfs: Package bash cannot be installed into the image because it has incompatible license(s): GPL-3.0-or-later" |
| 103 | 103 | ||
| 104 | result = bitbake('core-image-minimal', ignore_status=True) | 104 | result = bitbake('core-image-minimal', ignore_status=True) |
| @@ -106,12 +106,12 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0 LGPL-3.0" | |||
| 106 | raise AssertionError(result.output) | 106 | raise AssertionError(result.output) |
| 107 | 107 | ||
| 108 | def test_bash_or_license(self): | 108 | def test_bash_or_license(self): |
| 109 | self.write_config(self.default_config() + '\nLICENSE_append_pn-bash = " | SomeLicense"') | 109 | self.write_config(self.default_config() + '\nLICENSE:append:pn-bash = " | SomeLicense"') |
| 110 | 110 | ||
| 111 | bitbake('core-image-minimal') | 111 | bitbake('core-image-minimal') |
| 112 | 112 | ||
| 113 | def test_bash_whitelist(self): | 113 | def test_bash_whitelist(self): |
| 114 | self.write_config(self.default_config() + '\nWHITELIST_GPL-3.0_pn-core-image-minimal = "bash"') | 114 | self.write_config(self.default_config() + '\nWHITELIST_GPL-3.0:pn-core-image-minimal = "bash"') |
| 115 | 115 | ||
| 116 | bitbake('core-image-minimal') | 116 | bitbake('core-image-minimal') |
| 117 | 117 | ||
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index 3b99417e84..6f531dfa36 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
| @@ -183,9 +183,9 @@ class RecipetoolTests(RecipetoolBase): | |||
| 183 | '\n', | 183 | '\n', |
| 184 | 'PACKAGE_ARCH = "${MACHINE_ARCH}"\n', | 184 | 'PACKAGE_ARCH = "${MACHINE_ARCH}"\n', |
| 185 | '\n', | 185 | '\n', |
| 186 | 'SRC_URI:append_mymachine = " file://testfile"\n', | 186 | 'SRC_URI:append:mymachine = " file://testfile"\n', |
| 187 | '\n', | 187 | '\n', |
| 188 | 'do_install:append_mymachine() {\n', | 188 | 'do_install:append:mymachine() {\n', |
| 189 | ' install -d ${D}${datadir}\n', | 189 | ' install -d ${D}${datadir}\n', |
| 190 | ' install -m 0644 ${WORKDIR}/testfile ${D}${datadir}/something\n', | 190 | ' install -m 0644 ${WORKDIR}/testfile ${D}${datadir}/something\n', |
| 191 | '}\n'] | 191 | '}\n'] |
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 32044e74d0..2efbe514c1 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
| @@ -1035,7 +1035,7 @@ class Wic2(WicTestCase): | |||
| 1035 | @only_for_arch(['i586', 'i686', 'x86_64']) | 1035 | @only_for_arch(['i586', 'i686', 'x86_64']) |
| 1036 | def test_biosplusefi_plugin_qemu(self): | 1036 | def test_biosplusefi_plugin_qemu(self): |
| 1037 | """Test biosplusefi plugin in qemu""" | 1037 | """Test biosplusefi plugin in qemu""" |
| 1038 | config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES_append = " efi"\n' | 1038 | config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES:append = " efi"\n' |
| 1039 | self.append_config(config) | 1039 | self.append_config(config) |
| 1040 | self.assertEqual(0, bitbake('core-image-minimal').status) | 1040 | self.assertEqual(0, bitbake('core-image-minimal').status) |
| 1041 | self.remove_config(config) | 1041 | self.remove_config(config) |
| @@ -1072,7 +1072,7 @@ class Wic2(WicTestCase): | |||
| 1072 | # If an image hasn't been built yet, directory ${STAGING_DATADIR}/syslinux won't exists and _get_bootimg_dir() | 1072 | # If an image hasn't been built yet, directory ${STAGING_DATADIR}/syslinux won't exists and _get_bootimg_dir() |
| 1073 | # will raise with "Couldn't find correct bootimg_dir" | 1073 | # will raise with "Couldn't find correct bootimg_dir" |
| 1074 | # The easiest way to work-around this issue is to make sure we already built an image here, hence the bitbake call | 1074 | # The easiest way to work-around this issue is to make sure we already built an image here, hence the bitbake call |
| 1075 | config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES_append = " efi"\n' | 1075 | config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "test_biosplusefi_plugin.wks"\nMACHINE_FEATURES:append = " efi"\n' |
| 1076 | self.append_config(config) | 1076 | self.append_config(config) |
| 1077 | self.assertEqual(0, bitbake('core-image-minimal').status) | 1077 | self.assertEqual(0, bitbake('core-image-minimal').status) |
| 1078 | self.remove_config(config) | 1078 | self.remove_config(config) |
