From patchwork Sun Jul 16 09:07:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Ling X-Patchwork-Id: 129551 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A873A42E8C; Sun, 16 Jul 2023 11:08:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B8F942D13; Sun, 16 Jul 2023 11:08:18 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id CB3914013F for ; Sun, 16 Jul 2023 11:08:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689498498; x=1721034498; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=S5mk98ii5/ODtHwb+kf6Iz+8odakZr5mnr+Y0j3eWt4=; b=XRZKoKPH3Ontz2ZZ0RpVUkRMF0wnFWg3nPrZXQTARGFGNhujVNrT3EGo tEdYPAe72pIF14PQQ/eCEhoD8ZzA3x7IA+o8+7pNKX5hT98ubBpcEYqyX YiIWA0Rkza08Si2VvduLejWStJLTVYSfTrE/0z+wxm1KmdA9XAHt0g8uJ YZN3j3gXa9cqaW1/eLbneZ3nN8MMB4i2xvk9CBwCirmmGXse01Nuwz1Ga dJq7l8f1Dihtf5VCHoNfX5M9eiEXq5BzjyNGKwrxwhJuDphmirj9EBfzg nPToCagdIQjzpwrlX83BNxgPrGKn9tTGYiM6tVXgCljakJjgJxXBGEkTu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="350610643" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="350610643" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2023 02:08:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10772"; a="788303692" X-IronPort-AV: E=Sophos;i="6.01,210,1684825200"; d="scan'208";a="788303692" Received: from dpdk-lingjin.sh.intel.com ([10.67.114.163]) by fmsmga008.fm.intel.com with ESMTP; 16 Jul 2023 02:08:16 -0700 From: Jin Ling To: dts@dpdk.org Cc: Jin Ling Subject: [DTS][PATCH V1 07/10] framework/pmd_output: optimize function start_testpmd Date: Sun, 16 Jul 2023 17:07:51 +0800 Message-Id: <20230716090753.1590148-8-jin.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com> References: <20230716090753.1590148-1-jin.ling@intel.com> MIME-Version: 1.0 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 add code to create cmdline for running testpmd Signed-off-by: Jin Ling --- framework/pmd_output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index c8e8b50f..865476ea 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -135,6 +135,7 @@ class PmdOutput: config["ports"] = [ self.dut.ports_info[i]["pci"] for i in range(len(self.dut.ports_info)) ] + config["ports"]=list(set(config["ports"])) all_eal_param = self.dut.create_eal_parameters( fixed_prefix=fixed_prefix, socket=socket, **config ) @@ -145,6 +146,8 @@ class PmdOutput: if self.session != self.dut: self.session.send_expect("cd %s" % self.dut.base_dir, "# ") out = self.session.send_expect(command, expected, timeout) + if self.dut.test_mev == "true": + self.dut.mev_config_rx_port(out=out) self.command = command # wait 10s to ensure links getting up before test start. sleep(10)