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 91909A00E6 for ; Fri, 22 Mar 2019 02:55:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A5A01B550; Fri, 22 Mar 2019 02:55:29 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7504C58C4 for ; Fri, 22 Mar 2019 02:55:28 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 18:55:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,255,1549958400"; d="scan'208";a="329541060" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga006.fm.intel.com with ESMTP; 21 Mar 2019 18:55:27 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Mar 2019 18:55:27 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.134]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.252]) with mapi id 14.03.0415.000; Fri, 22 Mar 2019 09:55:25 +0800 From: "Li, WenjieX A" To: "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts][PATCH V3] tests/flow_classify_softnic: update the thread number Thread-Index: AQHU4FIfzMwJNJ3B4U62f5FCFJ8oEaYW49cQ Date: Fri, 22 Mar 2019 01:55:25 +0000 Message-ID: <8688172CD5C0B74590FAE19D9579F94B53662308@SHSMSX103.ccr.corp.intel.com> References: <1553219859-74302-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1553219859-74302-1-git-send-email-wenjiex.a.li@intel.com> Accept-Language: zh-CN, 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 V3] tests/flow_classify_softnic: 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: Li, WenjieX A > -----Original Message----- > From: Li, WenjieX A > Sent: Friday, March 22, 2019 9:58 AM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts][PATCH V3] tests/flow_classify_softnic: update the thread n= umber >=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 >=20 > V3: change the dts patch name > V2: add "sed -i ..." to set_ports() > V1: wrongly add "sed -i ..." to set_table() > --- > tests/TestSuite_flow_classify_softnic.py | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_flow_classify_softnic.py > b/tests/TestSuite_flow_classify_softnic.py > index 66db5c3..c98e8d0 100644 > --- a/tests/TestSuite_flow_classify_softnic.py > +++ b/tests/TestSuite_flow_classify_softnic.py > @@ -109,6 +109,8 @@ 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 +1351,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