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 D08E1A00BE; Mon, 27 Apr 2020 09:51:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C7B8B1C19A; Mon, 27 Apr 2020 09:51:43 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 50A211BF8E for ; Mon, 27 Apr 2020 09:51:41 +0200 (CEST) IronPort-SDR: kMjdPXE0Fn7fBj5Z7lBpXZPy+THe6TEZRETWUpe9fldK1xXtXDNSq5d6n1GkHSr42Tzcv9PUv3 +TqrVOs5laCA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:51:40 -0700 IronPort-SDR: VnF6Guz31elvo5umuBND3WL7v7w9nSigqTKBRbIM3tM2anMrfEkEtmjGw0c88TApp0t0QgFvhc NJMQsQO/74Ig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="367062855" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 27 Apr 2020 00:51:40 -0700 Received: from fmsmsx161.amr.corp.intel.com (10.18.125.9) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:40 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX161.amr.corp.intel.com (10.18.125.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:39 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.225]) with mapi id 14.03.0439.000; Mon, 27 Apr 2020 15:51:37 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 3/3]virtio_user_as_exceptional_path: set test nic to driver specified in cfg Thread-Index: AQHWG7fIGDxk/+VBqE6Ww9qZ/gj/7aiMmejg Date: Mon, 27 Apr 2020 07:51:36 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12B14@SHSMSX101.ccr.corp.intel.com> References: <1587897525-114547-1-git-send-email-qimaix.xiao@intel.com> <1587897525-114547-4-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1587897525-114547-4-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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 V1 3/3]virtio_user_as_exceptional_path: set test nic to driver specified in cfg 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Sunday, April 26, 2020 6:39 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 3/3]virtio_user_as_exceptional_path: set test ni= c to > driver specified in cfg >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_virtio_user_as_exceptional_path.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_virtio_user_as_exceptional_path.py > b/tests/TestSuite_virtio_user_as_exceptional_path.py > index 470e0de..35a0a98 100644 > --- a/tests/TestSuite_virtio_user_as_exceptional_path.py > +++ b/tests/TestSuite_virtio_user_as_exceptional_path.py > @@ -48,6 +48,7 @@ class TestVirtioUserAsExceptionalPath(TestCase): > # Get and verify the ports > self.dut_ports =3D self.dut.get_ports() > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > + self.def_driver =3D > self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver() > self.pci0 =3D self.dut.ports_info[0]['pci'] > pf_info =3D self.dut_ports[0] > netdev =3D self.dut.ports_info[pf_info]['port'] > @@ -96,9 +97,8 @@ class TestVirtioUserAsExceptionalPath(TestCase): > for i in self.dut_ports: > port =3D self.dut.ports_info[i]['port'] > port.bind_driver() > - self.dut.send_expect( > - "./usertools/dpdk-devbind.py -b igb_uio %s" % > - self.pci, '#', 30) > + bind_script_path =3D self.dut.get_dpdk_bind_script() > + self.dut.send_expect('%s --bind=3D%s %s' % (bind_script_path, > self.def_driver, self.pci), '# ') > self.peer_pci_setup =3D True >=20 > def launch_testpmd_vhost(self): > -- > 1.8.3.1