]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest: Ensure packages classes are set correctly for maintainers test
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Apr 2021 13:09:28 +0000 (14:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 18 Apr 2021 10:26:16 +0000 (11:26 +0100)
The dnf packages aren't parsed if rpm isn't in PACKAGE_CLASSES which means
the aintainers test failes for OE-Core (where ipk is the default) but not
for poky (where the default is rpm).

Ensure PACKAGE_CLASSES is set so it works in all cases.

[YOCTO #14277]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/distrodata.py

index fbc0c2a98da98ecba9f2b133ad5a31577ffe5627..0ad6e1ef91a0a9576870be03baa8c0a8edc68991 100644 (file)
@@ -99,7 +99,7 @@ The following recipes do not have a DESCRIPTION. Please add an entry for DESCRIP
                      return True
             return False
 
-        feature = 'require conf/distro/include/maintainers.inc\nLICENSE_FLAGS_WHITELIST += " commercial"\nPARSE_ALL_RECIPES = "1"\n'
+        feature = 'require conf/distro/include/maintainers.inc\nLICENSE_FLAGS_WHITELIST += " commercial"\nPARSE_ALL_RECIPES = "1"\nPACKAGE_CLASSES = "package_ipk package_deb package_rpm"\n'
         self.write_config(feature)
 
         with bb.tinfoil.Tinfoil() as tinfoil: