[oe-commits] [openembedded-core] 01/10: meta/classes/testexport: Remove __pycache__ from exported tests

git at git.openembedded.org git at git.openembedded.org
Thu Oct 18 15:48:27 UTC 2018


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

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

commit 405e822e9da4b53ec9ee8019364fdcb13ccc2587
Author: Aníbal Limón <anibal.limon at linaro.org>
AuthorDate: Wed Oct 17 18:00:44 2018 -0500

    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 at linaro.org>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/testexport.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass
index d070f07..59cbaef 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"))
 

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


More information about the Openembedded-commits mailing list