1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

oeqa/utils: Allow ~ in bblayers

Bitbake can parse ~ in bblayer's paths.
Added this functionality to oeqa code.

(From OE-Core rev: b4dc5b271247a1894d66908c5f20973be2a60d43)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-04-30 14:04:50 +03:00
committed by Richard Purdie
parent 0d9903d8b9
commit 8bc5ccb7a6
+2
View File
@@ -155,6 +155,8 @@ def get_test_layer():
layers = get_bb_var("BBLAYERS").split() layers = get_bb_var("BBLAYERS").split()
testlayer = None testlayer = None
for l in layers: for l in layers:
if '~' in l:
l = os.path.expanduser(l)
if "/meta-selftest" in l and os.path.isdir(l): if "/meta-selftest" in l and os.path.isdir(l):
testlayer = l testlayer = l
break break