summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-31 19:29:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-01 23:11:37 +0100
commitdd6987f49b258475c81be42c4c2bc3d30316dafd (patch)
treeeca8752ae16d603104182e5d5c93d6c369e33919 /meta/lib/oeqa
parent1985249632d51e594c624a97c1f81cfec4ed3914 (diff)
downloadpoky-dd6987f49b258475c81be42c4c2bc3d30316dafd.tar.gz
oeqa/selftest/buildoptions: set PACKAGE_CLASSES in test_arch_work_dir_and_export_source
test_arch_work_dir_and_export_source uses the archiver to generate SRPMS, so explicitly set PACKAGE_CLASSES to ensure that package_rpm is used. (From OE-Core rev: 030157fa8dd405be60c55523e074b2ec950d36ad) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/cases/buildoptions.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py
index bfe613b847..135e88e1f0 100644
--- a/meta/lib/oeqa/selftest/cases/buildoptions.py
+++ b/meta/lib/oeqa/selftest/cases/buildoptions.py
@@ -177,7 +177,12 @@ class ArchiverTest(OESelftestTestCase):
177 """ 177 """
178 Test for archiving the work directory and exporting the source files. 178 Test for archiving the work directory and exporting the source files.
179 """ 179 """
180 self.write_config("INHERIT += \"archiver\"\nARCHIVER_MODE[src] = \"original\"\nARCHIVER_MODE[srpm] = \"1\"") 180 self.write_config("""
181INHERIT += "archiver"
182PACKAGE_CLASSES = "package_rpm"
183ARCHIVER_MODE[src] = "original"
184ARCHIVER_MODE[srpm] = "1"
185""")
181 res = bitbake("xcursor-transparent-theme", ignore_status=True) 186 res = bitbake("xcursor-transparent-theme", ignore_status=True)
182 self.assertEqual(res.status, 0, "\nCouldn't build xcursortransparenttheme.\nbitbake output %s" % res.output) 187 self.assertEqual(res.status, 0, "\nCouldn't build xcursortransparenttheme.\nbitbake output %s" % res.output)
183 deploy_dir_src = get_bb_var('DEPLOY_DIR_SRC') 188 deploy_dir_src = get_bb_var('DEPLOY_DIR_SRC')