From 2bed63697e0ec59d959aa3f5ca64556a16669fe0 Mon Sep 17 00:00:00 2001 From: Matthew G McGovern Date: Tue, 12 Nov 2024 09:08:45 -0800 Subject: [PATCH] TarDownloader: enable skip_old_files option in tar extract --- microsoft/testsuites/dpdk/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/microsoft/testsuites/dpdk/common.py b/microsoft/testsuites/dpdk/common.py index 6269925b24..189cf0902e 100644 --- a/microsoft/testsuites/dpdk/common.py +++ b/microsoft/testsuites/dpdk/common.py @@ -152,10 +152,13 @@ def download(self) -> PurePath: self.asset_path = work_path.joinpath(tar_root_folder) # unpack into the dest dir # force name as tarfile name + # add option to skip files which already exist on disk + # in the event we have already extracted this specific tar node.tools[Tar].extract( file=str(remote_path), dest_dir=str(work_path), gzip=True, + skip_old_files=True, ) return self.asset_path