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 89DEBA046B for ; Fri, 23 Aug 2019 10:10:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 809F01BF9D; Fri, 23 Aug 2019 10:10:58 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C297F1BF92 for ; Fri, 23 Aug 2019 10:10:56 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Aug 2019 01:10:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,420,1559545200"; d="scan'208";a="180629654" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 23 Aug 2019 01:10:55 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 23 Aug 2019 01:10:55 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.19]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.65]) with mapi id 14.03.0439.000; Fri, 23 Aug 2019 16:10:53 +0800 From: "Zhao, XinfengX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH] tests: modify the cmd of tester bind driver Thread-Index: AQHVWYod165N/X6muUCfbLTD82YGTacIYV7Q Date: Fri, 23 Aug 2019 08:10:52 +0000 Message-ID: <44051B25D8C8784BB77FFB604D6A70CA1207ED18@shsmsx102.ccr.corp.intel.com> References: <1566518107-57554-1-git-send-email-xinfengx.zhao@intel.com> In-Reply-To: <1566518107-57554-1-git-send-email-xinfengx.zhao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] tests: modify the cmd of tester bind driver 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" Tested-by: Zhao, XinfengX -----Original Message----- From: Zhao, XinfengX=20 Sent: Friday, August 23, 2019 7:55 AM To: dts@dpdk.org Cc: Zhao, XinfengX Subject: [dts][PATCH] tests: modify the cmd of tester bind driver add "--force" in binding command to allow active links to be bind, and modi= fy the bind back cmd Signed-off-by: Xinfeng Zhao --- tests/TestSuite_vf_port_start_stop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_port_start_stop.py b/tests/TestSuite_vf_por= t_start_stop.py index 7cb797b..2ff2d1c 100644 --- a/tests/TestSuite_vf_port_start_stop.py +++ b/tests/TestSuite_vf_port_start_stop.py @@ -85,7 +85,7 @@ class TestVfPortStartStop(TestCase): self.tester_tx_pci =3D self.tester.ports_info[self.tester_tx_port]= ['pci'] port =3D self.tester.ports_info[self.tester_tx_port]['port'] self.tester_port_driver =3D port.get_nic_driver() - self.tester.send_expect("./dpdk-devbind.py --bind=3Digb_uio %s" % = self.tester_tx_pci, "#") + self.tester.send_expect("./dpdk-devbind.py --force=20 + --bind=3Digb_uio %s" % self.tester_tx_pci, "#") =20 src_mac =3D self.tester.get_mac(self.tester_tx_port)=20 if src_mac =3D=3D 'N/A': @@ -245,7 +245,7 @@ class TestVfPortStartStop(TestCase): self.pktgen_kill() if getattr(self, 'tester_port_driver', None) and \ getattr(self, 'tester_tx_pci', None): - self.tester.send_expect("./dpdk_nic_bind.py --bind=3D%s %s" \ + self.tester.send_expect("./dpdk-devbind.py --bind=3D%s %s" \ %(self.tester_port_driver, self.tester_tx_pci), "#") tx_interface =3D self.tester.get_interface(self.tester_tx_port= ) self.tester.send_expect("ifconfig %s up" % tx_interface, "#") -- 2.17.1