]> code.ossystems Code Review - openembedded-core.git/commit
ptest: allow the ptest-packagelists.inc warning to be disabled
authorRoss Burton <ross@burtonini.com>
Wed, 1 Sep 2021 16:57:03 +0000 (17:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Sep 2021 11:05:56 +0000 (12:05 +0100)
commitabe45c8c0a6da56a278796654d0520250dfd2a97
treeda6c76d122a06837a129fb6cd221ff25e8dc3bf5
parenta9fb51b75d4536d13734d91222bb0bc612555ae2
ptest: allow the ptest-packagelists.inc warning to be disabled

ptest.bbclass has a sanity check that all recipes in oe-core which
inherit ptest are also listed in the ptest-packagelists.inc file, and
the build fails if this is not the case.

Whilst this is a laudable goal, it is over-zealous as if the recipe has
a bbappend in another layer which inherits ptest, the build will fail.

By changing the combination of anonymous Python and bb.error() to a
recipe-scope QA test, this can be handled with the other sanity checks
and bbappends can skip the test if desired.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass
meta/classes/ptest.bbclass