summaryrefslogtreecommitdiffstats
path: root/poky/meta/classes/testexport.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/classes/testexport.bbclass')
-rw-r--r--poky/meta/classes/testexport.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/poky/meta/classes/testexport.bbclass b/poky/meta/classes/testexport.bbclass
index d070f07af..59cbaefbf 100644
--- a/poky/meta/classes/testexport.bbclass
+++ b/poky/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"))
OpenPOWER on IntegriCloud