]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/utils: Allow ~ in bblayers
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 30 Apr 2015 11:04:50 +0000 (14:04 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 May 2015 10:39:45 +0000 (11:39 +0100)
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>
meta/lib/oeqa/utils/commands.py

index e8a467f4cd900b953f5d346da287ec98baa31116..bc1dbb1a5f0d625958d685edd30a3b2e0d16658d 100644 (file)
@@ -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