From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 674B7A00E6 for ; Wed, 20 Mar 2019 02:35:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E41991B19; Wed, 20 Mar 2019 02:35:37 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 9AE8411A4 for ; Wed, 20 Mar 2019 02:35:35 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 18:35:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,246,1549958400"; d="scan'208";a="284141787" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 19 Mar 2019 18:35:34 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Mar 2019 18:35:34 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Mar 2019 18:35:33 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.158]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.121]) with mapi id 14.03.0415.000; Wed, 20 Mar 2019 09:35:24 +0800 From: "Zhu, ShuaiX" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V2] update the thread number Thread-Index: AQHU3jSvMT0OtZuCXEu8LpXYFKZXfaYTvddw Date: Wed, 20 Mar 2019 01:35:24 +0000 Message-ID: <4DC48DF9BDA3E54A836D2D3C057DEC6F0B1557C0@SHSMSX101.ccr.corp.intel.com> References: <1552987286-69185-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1552987286-69185-1-git-send-email-wenjiex.a.li@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.400.15 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 V2] update the thread number 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 Wenjie Li > Sent: Tuesday, March 19, 2019 5:21 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V2] update the thread number >=20 > 1. the thread number should be equal to the port number, update it 2. mov= e > dut.kill_all() to tear_down() to avoid the interactions between cases >=20 > Signed-off-by: Wenjie Li > V2: add "sed -i ..." to set_ports() > V1: wrongly add "sed -i ..." to set_table() > --- > tests/TestSuite_flow_classify_softnic.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_flow_classify_softnic.py > b/tests/TestSuite_flow_classify_softnic.py > index 66db5c3..dd05769 100644 > --- a/tests/TestSuite_flow_classify_softnic.py > +++ b/tests/TestSuite_flow_classify_softnic.py > @@ -109,6 +109,7 @@ class TestFlowClassifySoftnic(TestCase): > self.dut.send_expect(cmd, "# ", 20) > cmd =3D "sed -i '4i\link LINK3 > dev %s' ./drivers/net/softnic/flow_classify_softnic/%s" % (self.dut_p3_pc= i, > filename) > self.dut.send_expect(cmd, "# ", 20) > + self.dut.send_expect("sed -i 's/^thread 4 pipeline/thread %d > + pipeline/g' ./drivers/net/softnic/flow_classify_softnic/%s" % > + (self.port_num, filename), "# ", 20) >=20 > def set_table(self, cmd, filename): > """ > @@ -1349,10 +1350,10 @@ class TestFlowClassifySoftnic(TestCase): > """ > Run after each test case. > """ > - pass > + self.dut.kill_all() >=20 > def tear_down_all(self): > """ > Run after each test suite. > """ > - self.dut.kill_all() > + pass > -- > 2.17.2