From: Ed Bartosh Date: Thu, 30 Apr 2015 11:04:50 +0000 (+0300) Subject: oeqa/utils: Allow ~ in bblayers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bc5ccb7a655bc63f32107bfea1a1f9b5931dcce;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index e8a467f4cd9..bc1dbb1a5f0 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