From patchwork Fri Oct 28 14:19:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 119244 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 2D423A0542; Fri, 28 Oct 2022 08:00:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C7CE400D5; Fri, 28 Oct 2022 08:00:51 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 583F140041 for ; Fri, 28 Oct 2022 08:00:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666936849; x=1698472849; h=from:to:cc:subject:date:message-id; bh=n3p91IDP1pXEDNOH1c3PWQBWBW6yChCbqiYBGujU5GE=; b=MOTzMEL10Rs9wEkJ/lSQsllxrhEvY4Fg2Z/sw+hE4xwW79bl0io/PG9P VWAS/oNlNUwQu0Ezuwx4KiTdrOssT3gdOtrI20OHZ5KHUheRIhThEJi8Q k/Z8UZQgDadv4RPkLUcudHc26YuFZzafelwup7Cd8TrDYv8lH3mgrrJF0 BJlnLSTcDYT5ktYbyh4EpWNG/in3uMmC0SxfngrWQlknGFfAD2r/GdzMd rF415OYdbp6qgQdxzURZafZsWwmr2wKzfj16OFKWpcnDaVsrTzHhc6DfF ZHGFLvpn9IHbs/BHkItC1oy9pID+2MUb3nyuARaJQPtVFaUAD9EQ3LsLk w==; X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="370484238" X-IronPort-AV: E=Sophos;i="5.95,220,1661842800"; d="scan'208";a="370484238" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2022 23:00:48 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="701619549" X-IronPort-AV: E=Sophos;i="5.95,220,1661842800"; d="scan'208";a="701619549" Received: from unknown (HELO cvl_tetser_105.icx.intel.com) ([10.239.252.94]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2022 23:00:47 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1] tests/*: optimize scripts Date: Fri, 28 Oct 2022 14:19:56 +0000 Message-Id: <20221028141956.28281-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 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 the network card does not support a driver named "default", modify "default" to the actual driver. Signed-off-by: Song Jiale Tested-by: Weiyuan Li --- tests/TestSuite_iavf.py | 2 +- tests/TestSuite_kernelpf_iavf.py | 2 +- tests/TestSuite_vf_jumboframe.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_iavf.py b/tests/TestSuite_iavf.py index 5444a7e3..5315c96e 100644 --- a/tests/TestSuite_iavf.py +++ b/tests/TestSuite_iavf.py @@ -147,7 +147,7 @@ class TestIavf(TestCase): self.dut.destroy_sriov_vfs_by_port(self.used_dut_port_1) port = self.dut.ports_info[self.used_dut_port_1]["port"] self.used_dut_port_1 = None - self.bind_nic_driver(self.dut_ports[:2], driver="default") + self.bind_nic_driver(self.dut_ports[:2], driver=self.drivername) self.env_done = False def send_packet(self, mac, itf, tran_type="udp", count=1, pktLength=64, VID=100): diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 73435339..381c52e4 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -172,7 +172,7 @@ class TestKernelpfIavf(TestCase): self.dut.destroy_sriov_vfs_by_port(self.used_dut_port) self.used_dut_port = None - self.bind_nic_driver(self.dut_ports, driver="default") + self.bind_nic_driver(self.dut_ports, driver=self.drivername) self.env_done = False diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py index 42609e32..a6366b2d 100644 --- a/tests/TestSuite_vf_jumboframe.py +++ b/tests/TestSuite_vf_jumboframe.py @@ -117,7 +117,7 @@ class TestVfJumboFrame(TestCase): if getattr(self, "used_dut_port", None) != None: self.dut.destroy_sriov_vfs_by_port(self.used_dut_port) self.used_dut_port = None - self.bind_nic_driver(self.dut_ports[:1], driver="default") + self.bind_nic_driver(self.dut_ports[:1], driver=self.drivername) self.env_done = False