summaryrefslogtreecommitdiffstats
path: root/meta/classes/ptest.bbclass
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-16 11:10:02 +0100
commit75b08ce9aca8970ce7d5eddcbf86a77a3a00b255 (patch)
treeb8eb721baab9f287a172606bdc392045f655993e /meta/classes/ptest.bbclass
parent42ee625d4a02204e4620230971f6225f71af78bf (diff)
downloadpoky-75b08ce9aca8970ce7d5eddcbf86a77a3a00b255.tar.gz
ptest.bbclass: Use d.getVar instead of os.environ
[YOCTO #12597] [YOCTO #13238] (From OE-Core rev: ae116b0eea3b09055742877790b7e4620f5b8f37) Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/ptest.bbclass')
-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() {
84 return 84 return
85 85
86 bb.note("Generating symlinks for ptest") 86 bb.note("Generating symlinks for ptest")
87 bin_paths = { os.environ["bindir"], os.environ["base_bindir"], 87 bin_paths = { d.getVar("bindir"), d.getVar("base_bindir"),
88 os.environ["sbindir"], os.environ["base_sbindir"] } 88 d.getVar("sbindir"), d.getVar("base_sbindir") }
89 ptest_bindir = d.getVar("PTEST_BINDIR_PKGD_PATH") 89 ptest_bindir = d.getVar("PTEST_BINDIR_PKGD_PATH")
90 os.mkdir(ptest_bindir) 90 os.mkdir(ptest_bindir)
91 for pkg in (d.getVar('PACKAGES') or "").split(): 91 for pkg in (d.getVar('PACKAGES') or "").split():