]> code.ossystems Code Review - openembedded-core.git/commitdiff
cases/bbtests.py: ensure PACKAGE_CLASSES is set to RPM for bbtests.BitbakeTests.test_...
authorChris Laplante <chris.laplante@agilent.com>
Wed, 18 Nov 2020 20:56:36 +0000 (15:56 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Nov 2020 10:27:38 +0000 (10:27 +0000)
This is because the test expects to find "do_package_write_rpm" in the
bitbake output.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/bbtests.py

index dc423ec439b205d66b3dcbc240ba57d5c28c7c04..79390acc0dde4d37987e40912537b8b5c3c7a151 100644 (file)
@@ -89,6 +89,7 @@ class BitbakeTests(OESelftestTestCase):
         image_dir = bb_vars['D']
         pkgsplit_dir = bb_vars['PKGDEST']
         man_dir = bb_vars['mandir']
+        self.write_config("PACKAGE_CLASSES = \"package_rpm\"")
 
         bitbake('-c clean %s' % test_recipe)
         bitbake('-c package -f %s' % test_recipe)