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 9359DA034F; Mon, 7 Jun 2021 17:09:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C5CF4067E; Mon, 7 Jun 2021 17:09:05 +0200 (CEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by mails.dpdk.org (Postfix) with ESMTP id 1B1F140147 for ; Mon, 7 Jun 2021 17:09:04 +0200 (CEST) Received: by mail-qk1-f180.google.com with SMTP id c138so4090735qkg.5 for ; Mon, 07 Jun 2021 08:09:04 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=44JwZcXGlILpI0b0Nq2xtALJ66A/oqxZVn4dHhZ9T8o=; b=WnrvE9l/AleBjnYvJfOUxNvSmFwyPSMfGMr0BiypGeQFA7aNcIvrd7gYBadhz6Tvkf Lz/LNRPew9+Sx/lldzaAacdnuWtBPyxHB1CQ5BBvyr5UBkeGzLOEdxCNJMBNQlwyO/EU DFu64JEGgX89W0RSjijQeaQ1zeEOtWBMIIwo4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=44JwZcXGlILpI0b0Nq2xtALJ66A/oqxZVn4dHhZ9T8o=; b=axHt1W4cMeDXiYPhAtSDOwPOCSh5UaqiXfQL0G81T/j2+FyZLQjfr/QRiku3WZUTUw eN/j0tgwxZYryBmUj54KTZS1ivN+25vhdgUTrbQVyg8fw7XdFHnNhHQzhXaOa2LMNv9l 7dcu7TPz4/wTAlnlxZo7IgV5rVliv+yTwMLWMwcDUbmdN+WGVgfeknmsdkY7OuIuLCdz OlCBFr2yv4b5HHEExA2MV/siEBYoo4fFOXA86v/PXFSvgalbuurVZ2HLeVZAnyY6XJE2 ZBMv7Di3SsMeYDD/pR0gUluEAUxckwDoqv8XqUSdDfJ/8XJIIUuk+SlIpnOeWIN6CrNX FtaQ== X-Gm-Message-State: AOAM530QqggKCDMvsJ6Hl8tyfXV+Kuaq1O4ocCLyVHdFx+4OdH5QlULm ERobtbnGxBR6KRGEhsDahjlM+wWwSWBrwaA12mZ8nl/sbpc9O5eL25ynoqNhJySvk/MsHI9XTnN UzRt3POu6JiqjuWsuc+9YkRrXQn8VBgR70pgXaAOASlsyn2dJebjewg== X-Google-Smtp-Source: ABdhPJw01w68Iqps3h1984PfutPNOI+8Am0pG35KuH+cIaffYUBGIR1KWLB6lEqr2ti40LZ6rkSbww== X-Received: by 2002:a37:ae81:: with SMTP id x123mr16478817qke.251.1623078543277; Mon, 07 Jun 2021 08:09:03 -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 h12sm9578640qkj.52.2021.06.07.08.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 08:09:02 -0700 (PDT) From: blo@iol.unh.edu To: dts@dpdk.org Cc: Brandon Lo Date: Mon, 7 Jun 2021 11:09:02 -0400 Message-Id: <20210607150902.8664-1-blo@iol.unh.edu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607135618.7710-1-blo@iol.unh.edu> References: <20210607135618.7710-1-blo@iol.unh.edu> 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