Skip to contentSkip to conversation

ptest.bbclass: Use d.getVar instead of os.environ

PATCH New Mariano Lopez 1 participant 1 message Apr 13, 2019 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 ptest.bbclass: Use d.getVar instead of os.environ

In reply to a message not in the archive

[YOCTO #12597]
[YOCTO #13238]

---
 meta/classes/ptest.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/ptest.bbclass +2 -2
index e87a9659cb..936bf82736 100644
@@ -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():
Signature · 1 line
2.19.2