mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
1985249632
commit
dd6987f49b
@@ -177,7 +177,12 @@ class ArchiverTest(OESelftestTestCase):
|
||||
"""
|
||||
Test for archiving the work directory and exporting the source files.
|
||||
"""
|
||||
self.write_config("INHERIT += \"archiver\"\nARCHIVER_MODE[src] = \"original\"\nARCHIVER_MODE[srpm] = \"1\"")
|
||||
self.write_config("""
|
||||
INHERIT += "archiver"
|
||||
PACKAGE_CLASSES = "package_rpm"
|
||||
ARCHIVER_MODE[src] = "original"
|
||||
ARCHIVER_MODE[srpm] = "1"
|
||||
""")
|
||||
res = bitbake("xcursor-transparent-theme", ignore_status=True)
|
||||
self.assertEqual(res.status, 0, "\nCouldn't build xcursortransparenttheme.\nbitbake output %s" % res.output)
|
||||
deploy_dir_src = get_bb_var('DEPLOY_DIR_SRC')
|
||||
|
||||
Reference in New Issue
Block a user