[oe-commits] [openembedded-core] 04/41: ptest.bbclass: Use d.getVar instead of os.environ

git at git.openembedded.org git at git.openembedded.org
Sun May 12 08:14:31 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch warrior
in repository openembedded-core.

commit 4e6d7e73e19e66b1a853225101857d2f8e26cac8
Author: Mariano Lopez <just.another.mariano at gmail.com>
AuthorDate: Sat Apr 13 11:05:08 2019 -0500

    ptest.bbclass: Use d.getVar instead of os.environ
    
    [YOCTO #12597]
    [YOCTO #13238]
    
    Signed-off-by: Mariano Lopez <just.another.mariano at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/classes/ptest.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index e87a965..936bf82 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():

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list