summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa/utils
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:39:45 +0100
commitb4dc5b271247a1894d66908c5f20973be2a60d43 (patch)
tree8562c750aa8d88fa471582accf9e95077e391618 /meta/lib/oeqa/utils
parentd30cb87b6515b8ef3b953d9563354b471cfbdb86 (diff)
downloadopenembedded-core-b4dc5b271247a1894d66908c5f20973be2a60d43.tar.gz
openembedded-core-b4dc5b271247a1894d66908c5f20973be2a60d43.tar.bz2
openembedded-core-b4dc5b271247a1894d66908c5f20973be2a60d43.zip
oeqa/utils: Allow ~ in bblayers
Bitbake can parse ~ in bblayer's paths. Added this functionality to oeqa code. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-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():
layers = get_bb_var("BBLAYERS").split()
testlayer = None
for l in layers:
+ if '~' in l:
+ l = os.path.expanduser(l)
if "/meta-selftest" in l and os.path.isdir(l):
testlayer = l
break