On Thu, Apr 30, 2015 at 01:08:09PM +0000, Mario Domenech Goulart wrote: > Hi Ed, > > On Thu, 30 Apr 2015 14:04:50 +0300 Ed Bartosh <[email protected]> > wrote: > > > Bitbake can parse ~ in bblayer's paths. > > Added this functionality to oeqa code. > > > > Signed-off-by: Ed Bartosh <[email protected]> > > --- > > meta/lib/oeqa/utils/commands.py | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/meta/lib/oeqa/utils/commands.py > > b/meta/lib/oeqa/utils/commands.py > > index e8a467f..bc1dbb1 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) > > Is the "if '~' in l" test necessary? >
I did this to show why expanduser is called at all. This makes code self-explanatory and easier to understand. I was suggested to do it here: http://lists.openembedded.org/pipermail/bitbake-devel/2015-April/005661.html -- Regards, Ed -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
