From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9AB02A052A; Fri, 27 Nov 2020 03:56:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC7B6CAA9; Fri, 27 Nov 2020 03:56:52 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id F0154CAA1 for ; Fri, 27 Nov 2020 03:56:50 +0100 (CET) IronPort-SDR: BFQnbpwePeSWZFakUvZjFaAiAZuqwKc7/Z2aXcZMzhIxAdjNimSamvsEUj3Kaksjj/YAD/NHIg LdB5/p0GbJ+A== X-IronPort-AV: E=McAfee;i="6000,8403,9817"; a="233947104" X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="233947104" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 18:56:49 -0800 IronPort-SDR: XAbR31NTgsqdQm47YmwSl8I89vbyQl8H0R9G60X9rJnJOiNgZoCk7FdcWvLQmso75k9jdkJnW5 ER6JfT1qr/bg== X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="313557297" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 18:56:47 -0800 From: Haiyang Zhao To: Lijuan.Tu@intel.com, dts@dpdk.org Cc: Haiyang Zhao Date: Fri, 27 Nov 2020 10:50:24 +0800 Message-Id: <20201127025029.22276-3-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201127025029.22276-1-haiyangx.zhao@intel.com> References: <20201127025029.22276-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 2/7] framework/virt_dut: record DPDK version in guest DUT X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" get and save guest DUT dpdk version. Signed-off-by: Haiyang Zhao --- framework/virt_dut.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/virt_dut.py b/framework/virt_dut.py index 03569ba..9b0126b 100644 --- a/framework/virt_dut.py +++ b/framework/virt_dut.py @@ -172,8 +172,12 @@ class VirtDut(DPDKdut): self.prepare_package() out = self.send_expect("cd %s" % self.base_dir, "# ") + assert 'No such file or directory' not in out, "Can't switch to dpdk folder!!!" + out = self.send_expect("cat VERSION", "# ") if 'No such file or directory' in out: - self.logger.error("Can't switch to dpdk folder!!!") + self.logger.error("Can't get DPDK version due to VERSION not exist!!!") + else: + self.dpdk_version = out self.send_expect("alias ls='ls --color=none'", "#") -- 2.17.1