From b7e26bedc2952e4ac0edface4bd20be22d7708cd Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 29 Aug 2018 10:52:17 -0400 Subject: bitbake: cooker.py: Fix incorrect bb files matched warning In the case of a sublayer of an existing layer, where the sublayer and main layer share a path, the system may not match the paths properly resulting in: No bb files matched BBFILE_PATTERN_sublayer '^/path/main/sublayer' because it has already matched the main layer. Fix this issue by sorting the collection items based on the pattern, using longest to shortest. Obviously regex wildcards could still be an issue but these are typically not used, so this simply fix should work in the existing cases. (Bitbake rev: 1787cef7221b88f6920ea70fadaffc117d84c7aa) Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-selftest | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake-selftest b/bitbake/bin/bitbake-selftest index 7564de304c..cfa7ac5391 100755 --- a/bitbake/bin/bitbake-selftest +++ b/bitbake/bin/bitbake-selftest @@ -27,6 +27,7 @@ except RuntimeError as exc: sys.exit(str(exc)) tests = ["bb.tests.codeparser", + "bb.tests.cooker", "bb.tests.cow", "bb.tests.data", "bb.tests.event", -- cgit v1.2.3-54-g00ecf