summaryrefslogtreecommitdiffstats
path: root/meta/classes/testexport.bbclass
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2018-10-17 18:00:44 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-18 23:26:35 +0100
commit07fab73745eed8ce9dd0790d77f58ac98be49cec (patch)
tree79978cca7ea5379fb8ce6ff59fcd2bbcd0e96aa0 /meta/classes/testexport.bbclass
parente59d505373402555e15bec1279fc8d13074e196d (diff)
downloadpoky-07fab73745eed8ce9dd0790d77f58ac98be49cec.tar.gz
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. (From OE-Core rev: 405e822e9da4b53ec9ee8019364fdcb13ccc2587) Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testexport.bbclass')
-rw-r--r--meta/classes/testexport.bbclass5
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):
131 shutil.copy2(image_manifest, os.path.join(test_data_path, 'manifest')) 131 shutil.copy2(image_manifest, os.path.join(test_data_path, 'manifest'))
132 shutil.copy2(tdname, os.path.join(test_data_path, 'testdata.json')) 132 shutil.copy2(tdname, os.path.join(test_data_path, 'testdata.json'))
133 133
134 for subdir, dirs, files in os.walk(export_path):
135 for dir in dirs:
136 if dir == '__pycache__':
137 shutil.rmtree(os.path.join(subdir, dir))
138
134 # Create tar file for common parts of testexport 139 # Create tar file for common parts of testexport
135 create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR")) 140 create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR"))
136 141