From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B72EA034F; Mon, 7 Jun 2021 15:56:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 566784067E; Mon, 7 Jun 2021 15:56:22 +0200 (CEST) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by mails.dpdk.org (Postfix) with ESMTP id CDD7440147 for ; Mon, 7 Jun 2021 15:56:20 +0200 (CEST) Received: by mail-qk1-f175.google.com with SMTP id f70so1480544qke.13 for ; Mon, 07 Jun 2021 06:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9yx0g5XdDW0B+Uh7VGtH7kmUnqMP7JbPhuzRXLcjtJ8=; b=A24S8I3pcEsgB9KP02RnOKJfgvjL/EsXT8I9v1f+KANh5FhwwR/CXyKgHFBeaj9fgJ RJXb7Gda5lCYI/cqDiUyfyRV1nxxdaGSXylyUvV82IULqywo7ZI0kJc6oCDNJWQMbUsN zHomky6H6FWcBIphXJJB0LN/F/iBQfWzFbl0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9yx0g5XdDW0B+Uh7VGtH7kmUnqMP7JbPhuzRXLcjtJ8=; b=ulu+gGDL83m9c0b3DrwE3AV+Ca44dUrDJDh+U5UMC68ogvkmJyFgR9K3k4+caHQsPg vyTP04iMFTP7YFxcptL4RAz2sU20neXE5WifDWpoUahdGFP4uw1ga+rzbJaIILT/zmfC rw9PoHNusDasxYpFsPppmWz9bl8KDSKNOF4asM1LFD7PcdmxX/rY9X2SQfxlB+cZFfud RtAP1BOaP3sBrQWeTtf3exhYyqfzrdUtdmOERa01JVrIEbQa658/CaOPKzQYYoQi4TOg wQSHXfbcoHCjSpCdE8xohCWgP0BjymfqmDSBCctu1ljX3PRnb2pPlfufh/o2xaTkSftk RYSA== X-Gm-Message-State: AOAM531RRLh2dQfJUrb78BIbMPhtGIjGLUH2mTtnuXN6wPUlgB9eQxgv 6cWTqjVfalypdyB+y19PRx64zry0II4E9r8ipPrX8nZyPY6ir7cwn6NLnJk/nH/MASAKGEkCO2D ukqp4tYr5WvkxnKKjW4imKpOHrry36SBkK+3Kz+LDzJNJqvWPjXMZ0w== X-Google-Smtp-Source: ABdhPJx3Vou0YQT+f5it05RYjLryeA+NjLR3pQQoUrKoroX96SUL1qiqoSA6IgANa2dp/WqDjVxZww== X-Received: by 2002:a05:620a:4404:: with SMTP id v4mr16703849qkp.167.1623074179921; Mon, 07 Jun 2021 06:56:19 -0700 (PDT) Received: from blo.hsd1.nh.comcast.net (c-73-61-68-160.hsd1.nh.comcast.net. [73.61.68.160]) by smtp.gmail.com with ESMTPSA id d85sm4350422qkg.84.2021.06.07.06.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 06:56:19 -0700 (PDT) From: blo@iol.unh.edu To: dts@dpdk.org Cc: Brandon Lo Date: Mon, 7 Jun 2021 09:56:18 -0400 Message-Id: <20210607135618.7710-1-blo@iol.unh.edu> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH] Add m flag to tar command X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: Brandon Lo 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. --- 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