aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2018-08-28 14:19:55 -0400
committerMark Hatle <mark.hatle@windriver.com>2018-08-28 15:31:00 -0400
commitaedeabafd6ff401d8d285d4cc81232492915f76d (patch)
treef0e4eecbce44f2e6a1e046a870be6c3ffd8503d5 /bin
parent9c86c582a10c9b23abad7d34b6cbf12f7086294d (diff)
downloadbitbake-contrib-aedeabafd6ff401d8d285d4cc81232492915f76d.tar.gz
cooker.py: Fix incorrect bb files matched warningmgh/cooker-fix
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. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-selftest1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest
index 7564de304..cfa7ac539 100755
--- a/bin/bitbake-selftest
+++ b/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",