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 7AED1A034F; Mon, 7 Jun 2021 17:07:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F05E4067E; Mon, 7 Jun 2021 17:07:44 +0200 (CEST) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by mails.dpdk.org (Postfix) with ESMTP id 2481540147 for ; Mon, 7 Jun 2021 17:07:43 +0200 (CEST) Received: by mail-qk1-f182.google.com with SMTP id c138so4084908qkg.5 for ; Mon, 07 Jun 2021 08:07:43 -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=44JwZcXGlILpI0b0Nq2xtALJ66A/oqxZVn4dHhZ9T8o=; b=gFIgoYUpHyayJ2Oe2VX2nRtF3lHAl57Y1jT5vlvGlsS9nK5OdRpw81Ni5/Mb2ddYPN NMnclGMSS8LE2b9AQkT85WTZDlc1APJJinhe6HaoT8uHhB2EJydWmXVwgk1Fy8GYT4E8 P2245IKfQH6CxKuDJRexzTeZ5zGXRwIY9PLEM= 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=44JwZcXGlILpI0b0Nq2xtALJ66A/oqxZVn4dHhZ9T8o=; b=mJtB5QzFudXXK2f0o1rKoocA3dz236fDta5xktznoBx50HTWChgJlnHvMBq9WecdWo GUPAXjjqUjD/oSDyzNXeqy1xbqAWRjHjxyy879nPHpgOIpCIjFdDNL+ZUaYM6eya3rJe q9IvHA+VkXYZz9uM9Jjna69aYXXdUbu0wKUc7K8RK5/fOq6eZzy/FZAaVTsATcYMtt/m hXKFPPerhfRGj184TUlKxVJ/cBMAkkiaasENNcAPwjUsYKALf9vWsB8N3cL8eNfq71y6 KWF2yzguJ49G/id5p12eIHS3FnHzwldubbcA78xdHvIjR6T7U32tvVN8arOERx7YwRY0 uSTg== X-Gm-Message-State: AOAM530SA1y2YDc1qK45H2oqJm8nW3vEZxkZbXCw+XQiMkv0NQEGchF4 Pq491xUjT/4K6cQVqJJzZLVVzjD0Qp9rd1xdUIShvSYIWSCZAd89VLOTyP9SrHhCuqSyxqmbeKM qpGiBoo9DTtfzJFc5u6AvgQqe+vnrMkRlNHEHF2/a2fTgayt4qY5JRw== X-Google-Smtp-Source: ABdhPJx3WunEsfwF6PfyPHTQG1IMFegUl8f5tR1moJXaaCHV0DctknrLyDE+V/UpATdTQHyS2d1Rxg== X-Received: by 2002:a05:620a:40c4:: with SMTP id g4mr16729148qko.378.1623078461905; Mon, 07 Jun 2021 08:07:41 -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 n4sm8624098qkc.79.2021.06.07.08.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 08:07:41 -0700 (PDT) From: blo@iol.unh.edu To: dts@dpdk.org Cc: Brandon Lo Date: Mon, 7 Jun 2021 11:07:40 -0400 Message-Id: <20210607150740.8611-1-blo@iol.unh.edu> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH v2] 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. Signed-off-by: Brandon Lo --- 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