summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariano Lopez <just.another.mariano@gmail.com>2019-04-13 11:05:08 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-15 17:40:32 +0100
commitae116b0eea3b09055742877790b7e4620f5b8f37 (patch)
tree1f4fdea70d065575e19668eaf3721f534b5ec300
parent64047300da42b2cf29026c0b570f91b58bab5e6a (diff)
downloadopenembedded-core-contrib-ae116b0eea3b09055742877790b7e4620f5b8f37.tar.gz
openembedded-core-contrib-ae116b0eea3b09055742877790b7e4620f5b8f37.tar.bz2
openembedded-core-contrib-ae116b0eea3b09055742877790b7e4620f5b8f37.zip
ptest.bbclass: Use d.getVar instead of os.environ
[YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/ptest.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index e87a9659cb..936bf82736 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -84,8 +84,8 @@ python ptest_update_alternatives() {
return
bb.note("Generating symlinks for ptest")
- bin_paths = { os.environ["bindir"], os.environ["base_bindir"],
- os.environ["sbindir"], os.environ["base_sbindir"] }
+ bin_paths = { d.getVar("bindir"), d.getVar("base_bindir"),
+ d.getVar("sbindir"), d.getVar("base_sbindir") }
ptest_bindir = d.getVar("PTEST_BINDIR_PKGD_PATH")
os.mkdir(ptest_bindir)
for pkg in (d.getVar('PACKAGES') or "").split():