diff mbox series

[v2] Add m flag to tar command

Message ID 20210607150740.8611-1-blo@iol.unh.edu (mailing list archive)
State Accepted
Headers show
Series [v2] Add m flag to tar command | expand

Commit Message

Brandon Lo June 7, 2021, 3:07 p.m. UTC
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(-)

Comments

Tu, Lijuan June 9, 2021, 8:09 a.m. UTC | #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
diff mbox series

Patch

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", "# ")