summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-selftest
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2018-08-29 10:52:17 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-05 18:01:37 +0100
commitb7e26bedc2952e4ac0edface4bd20be22d7708cd (patch)
tree7eb6def35e254ae265cf7e4321c050a855a76ef9 /bitbake/bin/bitbake-selftest
parent2e9189c70ce60adee66fc602f684574bd305a4f9 (diff)
downloadpoky-b7e26bedc2952e4ac0edface4bd20be22d7708cd.tar.gz
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 <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-selftest')
-rwxr-xr-xbitbake/bin/bitbake-selftest1
1 files changed, 1 insertions, 0 deletions
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:
27 sys.exit(str(exc)) 27 sys.exit(str(exc))
28 28
29tests = ["bb.tests.codeparser", 29tests = ["bb.tests.codeparser",
30 "bb.tests.cooker",
30 "bb.tests.cow", 31 "bb.tests.cow",
31 "bb.tests.data", 32 "bb.tests.data",
32 "bb.tests.event", 33 "bb.tests.event",