diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2018-10-17 18:00:44 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-18 16:47:59 +0100 |
commit | 405e822e9da4b53ec9ee8019364fdcb13ccc2587 (patch) | |
tree | 921624fd6f2e68140c0768a87324387293c7d996 /meta | |
parent | b9ba5934c684ab320f9ec0b8d1f9ea301f383c1f (diff) | |
download | openembedded-core-405e822e9da4b53ec9ee8019364fdcb13ccc2587.tar.gz openembedded-core-405e822e9da4b53ec9ee8019364fdcb13ccc2587.tar.bz2 openembedded-core-405e822e9da4b53ec9ee8019364fdcb13ccc2587.zip |
meta/classes/testexport: Remove __pycache__ from exported tests
The __pycache__ is created based on python3 version in the build machine
and isn't a garantee to be useful on the system that runs exported tests.
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/testexport.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index d070f07afa..59cbaefbf9 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass @@ -131,6 +131,11 @@ def copy_needed_files(d, tc): shutil.copy2(image_manifest, os.path.join(test_data_path, 'manifest')) shutil.copy2(tdname, os.path.join(test_data_path, 'testdata.json')) + for subdir, dirs, files in os.walk(export_path): + for dir in dirs: + if dir == '__pycache__': + shutil.rmtree(os.path.join(subdir, dir)) + # Create tar file for common parts of testexport create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR")) |