summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-30 14:04:50 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-03 11:43:48 +0100
commit8bc5ccb7a655bc63f32107bfea1a1f9b5931dcce (patch)
tree32358f2f4d9a98bdb0690f376517ffc439099b30
parent0d9903d8b9d090b70ed71de22b4f7ad34ee3fc4b (diff)
downloadpoky-8bc5ccb7a655bc63f32107bfea1a1f9b5931dcce.tar.gz
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>
-rw-r--r--meta/lib/oeqa/utils/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index e8a467f4cd..bc1dbb1a5f 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -155,6 +155,8 @@ def get_test_layer():
155 layers = get_bb_var("BBLAYERS").split() 155 layers = get_bb_var("BBLAYERS").split()
156 testlayer = None 156 testlayer = None
157 for l in layers: 157 for l in layers:
158 if '~' in l:
159 l = os.path.expanduser(l)
158 if "/meta-selftest" in l and os.path.isdir(l): 160 if "/meta-selftest" in l and os.path.isdir(l):
159 testlayer = l 161 testlayer = l
160 break 162 break