From: Brandon Lo <blo@iol.unh.edu> The m flag for tar makes it so that the untar process touches each file. This will prevent any time presevation issues like clock skew. Signed-off-by: Brandon Lo <blo@iol.unh.edu> --- framework/project_dpdk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 2975e2ef..f7946664 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -462,7 +462,7 @@ class DPDKdut(Dut): self.send_expect("rm -rf %s" % self.base_dir, "#") # unpack dpdk - out = self.send_expect("tar zxf %s%s -C %s" % + out = self.send_expect("tar zxfm %s%s -C %s" % (dst_dir, self.package.split('/')[-1], p_dir), "# ", 30, verify=True) if out == -1: @@ -704,10 +704,10 @@ class DPDKtester(Tester): self.session.copy_file_to("dep/tgen.tgz") self.session.copy_file_to("dep/tclclient.tgz") # unpack tgen - out = self.send_expect("tar zxf tgen.tgz", "# ") + out = self.send_expect("tar zxfm tgen.tgz", "# ") assert "Error" not in out # unpack tclclient - out = self.send_expect("tar zxf tclclient.tgz", "# ") + out = self.send_expect("tar zxfm tclclient.tgz", "# ") assert "Error" not in out self.send_expect("modprobe uio", "# ") -- 2.25.1
From: Brandon Lo <blo@iol.unh.edu> The m flag for tar makes it so that the untar process touches each file. This will prevent any time presevation issues like clock skew. Signed-off-by: Brandon Lo <blo@iol.unh.edu> --- framework/project_dpdk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 2975e2ef..f7946664 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -462,7 +462,7 @@ class DPDKdut(Dut): self.send_expect("rm -rf %s" % self.base_dir, "#") # unpack dpdk - out = self.send_expect("tar zxf %s%s -C %s" % + out = self.send_expect("tar zxfm %s%s -C %s" % (dst_dir, self.package.split('/')[-1], p_dir), "# ", 30, verify=True) if out == -1: @@ -704,10 +704,10 @@ class DPDKtester(Tester): self.session.copy_file_to("dep/tgen.tgz") self.session.copy_file_to("dep/tclclient.tgz") # unpack tgen - out = self.send_expect("tar zxf tgen.tgz", "# ") + out = self.send_expect("tar zxfm tgen.tgz", "# ") assert "Error" not in out # unpack tclclient - out = self.send_expect("tar zxf tclclient.tgz", "# ") + out = self.send_expect("tar zxfm tclclient.tgz", "# ") assert "Error" not in out self.send_expect("modprobe uio", "# ") -- 2.25.1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of blo@iol.unh.edu
> Sent: 2021年6月7日 23:08
> To: dts@dpdk.org
> Cc: Brandon Lo <blo@iol.unh.edu>
> Subject: [dts] [PATCH v2] Add m flag to tar command
>
> From: Brandon Lo <blo@iol.unh.edu>
>
> The m flag for tar makes it so that the untar process touches each file. This will
> prevent any time presevation issues like clock skew.
>
> Signed-off-by: Brandon Lo <blo@iol.unh.edu>
Applied, thanks