diff options
| author | Mariano Lopez <just.another.mariano@gmail.com> | 2019-04-13 11:05:08 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-12 09:13:38 +0100 |
| commit | 92480676aeff5dd0e3f08b0c58b1ddb147e5a719 (patch) | |
| tree | 850c44da9f8cb3f2530577c30ef72a2b07dcd382 | |
| parent | 02f8ed1a1a96ec33b14e63b5ee21cb284361865b (diff) | |
| download | poky-92480676aeff5dd0e3f08b0c58b1ddb147e5a719.tar.gz | |
ptest.bbclass: Use d.getVar instead of os.environ
[YOCTO #12597]
[YOCTO #13238]
(From OE-Core rev: 4e6d7e73e19e66b1a853225101857d2f8e26cac8)
Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/ptest.bbclass | 4 |
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(): |
