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 A0579A0487 for ; Mon, 29 Jul 2019 07:56:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7D6681BF1C; Mon, 29 Jul 2019 07:56:34 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C3D4C1BF17 for ; Mon, 29 Jul 2019 07:56:32 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jul 2019 22:56:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,321,1559545200"; d="scan'208";a="370901788" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga006.fm.intel.com with ESMTP; 28 Jul 2019 22:56:32 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 28 Jul 2019 22:56:31 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 28 Jul 2019 22:56:31 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.139]) with mapi id 14.03.0439.000; Mon, 29 Jul 2019 13:56:29 +0800 From: "Zhu, ShuaiX" To: "Zhu, WenhuiX" , "dts@dpdk.org" CC: "Zhu, WenhuiX" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/hotpiug_mp:add parameters when igb_uio Thread-Index: AQHVRcz5gSPvY4ZeQkOp+IXDb8+5HabhGP8g Date: Mon, 29 Jul 2019 05:56:28 +0000 Message-ID: <4DC48DF9BDA3E54A836D2D3C057DEC6F0B1D3B54@SHSMSX101.ccr.corp.intel.com> References: <1564377735-117273-1-git-send-email-wenhuix.zhu@intel.com> In-Reply-To: <1564377735-117273-1-git-send-email-wenhuix.zhu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 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] tests/hotpiug_mp:add parameters when igb_uio 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: Zhu, ShuaiX > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhuwenhui > Sent: Monday, July 29, 2019 1:22 PM > To: dts@dpdk.org > Cc: Zhu, WenhuiX > Subject: [dts] [PATCH V1] tests/hotpiug_mp:add parameters when igb_uio >=20 > change test cases based on dpdk bbe29a9bd7ab6feab. >=20 > Signed-off-by: zhuwenhui > --- > tests/TestSuite_hotplug_mp.py | 42 ++++++++++++++++++++++++----------- > 1 file changed, 29 insertions(+), 13 deletions(-) >=20 > diff --git a/tests/TestSuite_hotplug_mp.py b/tests/TestSuite_hotplug_mp.p= y > index ff89164..62f1982 100644 > --- a/tests/TestSuite_hotplug_mp.py > +++ b/tests/TestSuite_hotplug_mp.py > @@ -42,19 +42,35 @@ class TestHotplugMp(TestCase): > """ > Setup primary process and two secondary processes. > """ > - out =3D self.session_pri.send_expect( > - "./examples/multi_process/hotplug_mp/%s/hotplug_mp > --proc-type=3Dauto" > - % self.target, "example>") > - self.verify("Auto-detected process type: PRIMARY" in out, > - "Failed to setup primary process!") > - for out in [self.session_sec_1.send_expect( > - > "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=3Dauto" > - % self.target, "example>"), > - self.session_sec_2.send_expect( > - > "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=3Dauto" > - % self.target, "example>")]: > - self.verify("Auto-detected process type: SECONDARY" in out, > - "Failed to setup secondary process!") > + if self.drivername =3D=3D "igb_uio": > + out =3D self.session_pri.send_expect( > + "./examples/multi_process/hotplug_mp/%s/hotplug_mp > --iova-mode=3Dpa --proc-type=3Dauto" > + % self.target, "example>") > + self.verify("Auto-detected process type: PRIMARY" in out, > + "Failed to setup primary process!") > + for out in [self.session_sec_1.send_expect( > + > "./examples/multi_process/hotplug_mp/%s/hotplug_mp --iova-mode=3Dpa > --proc-type=3Dauto" > + % self.target, "example>"), > + self.session_sec_2.send_expect( > + > "./examples/multi_process/hotplug_mp/%s/hotplug_mp --iova-mode=3Dpa > --proc-type=3Dauto" > + % self.target, "example>")]: > + self.verify("Auto-detected process type: SECONDARY" in o= ut, > + "Failed to setup secondary process!") > + > + else: > + out =3D self.session_pri.send_expect( > + "./examples/multi_process/hotplug_mp/%s/hotplug_mp > --proc-type=3Dauto" > + % self.target, "example>") > + self.verify("Auto-detected process type: PRIMARY" in out, > + "Failed to setup primary process!") > + for out in [self.session_sec_1.send_expect( > + > "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=3Dauto" > + % self.target, "example>"), > + self.session_sec_2.send_expect( > + > "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=3Dauto" > + % self.target, "example>")]: > + self.verify("Auto-detected process type: SECONDARY" in o= ut, > + "Failed to setup secondary process!") >=20 > def multi_process_quit(self): > """ > -- > 2.17.2