poky/meta-selftest/recipes-test
Paul Barker a1296d40a1 bitbake.conf: Prevent pyc file generation in pseudo context
This also effectively reverts commit b6d30c21b0:
    bitbake.conf: Extend PSEUDO_IGNORE_PATHS to ${COREBASE}/meta

The contents of ${COREBASE}/meta were ignored as pyc files could be
generated for the contents of the lib subdirectory if python modules
were imported within a pseudo context. However this doesn't protect us
from pyc files being generated in the lib directories for other layers.
It's far better to tell python not to produce pyc files when running
under pseudo (by setting the PYTHONDONTWRITEBYTECODE variable) as this
will cover any location where pyc files could possibly be created. This
variable is set in FAKEROOTBASEENV so that it applies to the
bitbake-worker instance for fakeroot tasks, preventing pyc files from
being generated for imports in python tasks themselves.

Also add a test case to ensure that pyc files are not created in tasks
which are executed under pseudo.

(From OE-Core rev: 7aa1ae139b9131faff04c0ed156fd8efcde114f6)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 73d538f20743017a44cea4c20dbe09a0327cfc71)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-12 14:25:14 +00:00
..
aspell aspell: upgrade from 0.60.7 to 0.60.8 2019-10-19 23:18:34 +01:00
container-image selftest/containerimage.py: Add container IMAGE_FSTYPES test 2017-02-19 06:49:00 -08:00
delay oeqa/selftest/buildoptions: Ensure diskmon tests run consistently 2018-12-01 11:38:36 +00:00
devtool selftest: add test for recipes with patches in overrides 2020-10-08 08:08:32 +01:00
emptytest emptytest: exclude from world builds 2016-01-24 09:40:22 +00:00
error meta-selftest/error: Cleanup large trailing whitespace 2018-12-01 11:38:36 +00:00
fortran fortran-helloworld: neaten recipe 2019-07-31 23:03:01 +01:00
git-submodule-test selftest: git-submodule-test: New recipe for testing a gitsm SRC_URI 2020-06-09 13:13:59 +01:00
images meta-selftest: wic: Add test for --use-uuid / --fsuuid 2017-12-18 18:03:58 +00:00
license incompatible_lic.py: Add tests for incompatible licenses with wildcards 2019-12-16 23:25:50 +00:00
m4 m4: use wildcard for selftest bbappend 2017-02-15 20:06:44 -08:00
man-db oe-selftest: fix tests to reflect man->man-db transition 2018-02-24 10:31:45 +00:00
multiconfig oeqa: Test multiconfig parsing 2019-09-27 13:02:17 +01:00
nopackages selftest-nopackages: New recipe in meta-selftest 2020-06-09 13:13:59 +01:00
postinst oe-selftest: add a test for failing package post-installation scriptlets 2018-03-15 06:27:18 -07:00
pseudo-pyc-test bitbake.conf: Prevent pyc file generation in pseudo context 2021-01-12 14:25:14 +00:00
recipetool selftest/recipetool: Drop globbing SRC_URI test, no longer supported 2020-08-26 09:04:04 +01:00
recipeutils recipeutils-test: use a small dependency in the dummy recipe 2019-11-04 13:39:05 +00:00
selftest-chown selftest/package: Add test to ensure ownership is preserved 2020-04-26 14:00:50 +01:00
selftest-ed selftest-ed: Support native builds 2020-06-09 13:13:59 +01:00
selftest-hardlink selftest/package: Add package separated debug symbols hardlink test 2018-08-28 10:30:28 +01:00
sysroot-test oeqa/selftest: Add test for conflicting sysroot provider 2020-04-26 14:00:50 +01:00
xcursor-transparent-theme xcursor-transparent-theme: use a version glob in the selftest bbappend 2016-03-09 16:58:11 +00:00