mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
testexport: rename create_tarball method
as otherwise when using it in combination with archiver.bbclass we would have 2 methods of the same name but with different signatures leading to various hard to understand exceptions (From OE-Core rev: ce0c1cb2fc67881d2edcbe269ea934917ccfb48a) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d484165747
commit
cf9fd0e770
@@ -137,7 +137,7 @@ def copy_needed_files(d, tc):
|
|||||||
shutil.rmtree(os.path.join(subdir, dir))
|
shutil.rmtree(os.path.join(subdir, dir))
|
||||||
|
|
||||||
# Create tar file for common parts of testexport
|
# Create tar file for common parts of testexport
|
||||||
create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR"))
|
testexport_create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR"))
|
||||||
|
|
||||||
# Copy packages needed for runtime testing
|
# Copy packages needed for runtime testing
|
||||||
package_extraction(d, tc.suites)
|
package_extraction(d, tc.suites)
|
||||||
@@ -146,7 +146,7 @@ def copy_needed_files(d, tc):
|
|||||||
export_pkg_dir = os.path.join(d.getVar("TEST_EXPORT_DIR"), "packages")
|
export_pkg_dir = os.path.join(d.getVar("TEST_EXPORT_DIR"), "packages")
|
||||||
oe.path.copytree(test_pkg_dir, export_pkg_dir)
|
oe.path.copytree(test_pkg_dir, export_pkg_dir)
|
||||||
# Create tar file for packages needed by the DUT
|
# Create tar file for packages needed by the DUT
|
||||||
create_tarball(d, "testexport_packages_%s.tar.gz" % d.getVar("MACHINE"), export_pkg_dir)
|
testexport_create_tarball(d, "testexport_packages_%s.tar.gz" % d.getVar("MACHINE"), export_pkg_dir)
|
||||||
|
|
||||||
# Copy SDK
|
# Copy SDK
|
||||||
if d.getVar("TEST_EXPORT_SDK_ENABLED") == "1":
|
if d.getVar("TEST_EXPORT_SDK_ENABLED") == "1":
|
||||||
@@ -159,11 +159,11 @@ def copy_needed_files(d, tc):
|
|||||||
shutil.copy2(tarball_path, export_sdk_dir)
|
shutil.copy2(tarball_path, export_sdk_dir)
|
||||||
|
|
||||||
# Create tar file for the sdk
|
# Create tar file for the sdk
|
||||||
create_tarball(d, "testexport_sdk_%s.tar.gz" % d.getVar("SDK_ARCH"), export_sdk_dir)
|
testexport_create_tarball(d, "testexport_sdk_%s.tar.gz" % d.getVar("SDK_ARCH"), export_sdk_dir)
|
||||||
|
|
||||||
bb.plain("Exported tests to: %s" % export_path)
|
bb.plain("Exported tests to: %s" % export_path)
|
||||||
|
|
||||||
def create_tarball(d, tar_name, src_dir):
|
def testexport_create_tarball(d, tar_name, src_dir):
|
||||||
|
|
||||||
import tarfile
|
import tarfile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user