summaryrefslogtreecommitdiffstats
path: root/meta/classes/testexport.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/testexport.bbclass')
-rw-r--r--meta/classes/testexport.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass
index 59cbaef..1b0fb44 100644
--- a/meta/classes/testexport.bbclass
+++ b/meta/classes/testexport.bbclass
@@ -137,7 +137,7 @@ def copy_needed_files(d, tc):
137 shutil.rmtree(os.path.join(subdir, dir)) 137 shutil.rmtree(os.path.join(subdir, dir))
138 138
139 # Create tar file for common parts of testexport 139 # Create tar file for common parts of testexport
140 create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR")) 140 testexport_create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR"))
141 141
142 # Copy packages needed for runtime testing 142 # Copy packages needed for runtime testing
143 package_extraction(d, tc.suites) 143 package_extraction(d, tc.suites)
@@ -146,7 +146,7 @@ def copy_needed_files(d, tc):
146 export_pkg_dir = os.path.join(d.getVar("TEST_EXPORT_DIR"), "packages") 146 export_pkg_dir = os.path.join(d.getVar("TEST_EXPORT_DIR"), "packages")
147 oe.path.copytree(test_pkg_dir, export_pkg_dir) 147 oe.path.copytree(test_pkg_dir, export_pkg_dir)
148 # Create tar file for packages needed by the DUT 148 # Create tar file for packages needed by the DUT
149 create_tarball(d, "testexport_packages_%s.tar.gz" % d.getVar("MACHINE"), export_pkg_dir) 149 testexport_create_tarball(d, "testexport_packages_%s.tar.gz" % d.getVar("MACHINE"), export_pkg_dir)
150 150
151 # Copy SDK 151 # Copy SDK
152 if d.getVar("TEST_EXPORT_SDK_ENABLED") == "1": 152 if d.getVar("TEST_EXPORT_SDK_ENABLED") == "1":
@@ -159,11 +159,11 @@ def copy_needed_files(d, tc):
159 shutil.copy2(tarball_path, export_sdk_dir) 159 shutil.copy2(tarball_path, export_sdk_dir)
160 160
161 # Create tar file for the sdk 161 # Create tar file for the sdk
162 create_tarball(d, "testexport_sdk_%s.tar.gz" % d.getVar("SDK_ARCH"), export_sdk_dir) 162 testexport_create_tarball(d, "testexport_sdk_%s.tar.gz" % d.getVar("SDK_ARCH"), export_sdk_dir)
163 163
164 bb.plain("Exported tests to: %s" % export_path) 164 bb.plain("Exported tests to: %s" % export_path)
165 165
166def create_tarball(d, tar_name, src_dir): 166def testexport_create_tarball(d, tar_name, src_dir):
167 167
168 import tarfile 168 import tarfile
169 169