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 53C23A052E; Tue, 21 Jan 2020 08:51:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C9C834EF; Tue, 21 Jan 2020 08:51:49 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 1311D322C for ; Tue, 21 Jan 2020 08:51:46 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2020 23:51:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,345,1574150400"; d="scan'208";a="221630389" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga008.fm.intel.com with ESMTP; 20 Jan 2020 23:51:45 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 20 Jan 2020 23:51:45 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 20 Jan 2020 23:51:45 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.203]) with mapi id 14.03.0439.000; Tue, 21 Jan 2020 15:51:43 +0800 From: "Tu, Lijuan" To: "Xu, HailinX" , "dts@dpdk.org" CC: "Xu, HailinX" Thread-Topic: [dts] [PATCH V1 1/2] tests/flow_classify:add create_eal_parameters Thread-Index: AQHV0AZq4pbV4SuQnkyU37cbrAHSh6f0vyYw Date: Tue, 21 Jan 2020 07:51:42 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBB04D5@SHSMSX101.ccr.corp.intel.com> References: <1579575721-138854-1-git-send-email-hailinx.xu@intel.com> In-Reply-To: <1579575721-138854-1-git-send-email-hailinx.xu@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 1/2] tests/flow_classify:add create_eal_parameters 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 the series. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,hailin > Sent: Tuesday, January 21, 2020 11:02 AM > To: dts@dpdk.org > Cc: Xu, HailinX > Subject: [dts] [PATCH V1 1/2] tests/flow_classify:add create_eal_paramete= rs >=20 > Signed-off-by: xu,hailin > --- > tests/TestSuite_flow_classify.py | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_flow_classify.py b/tests/TestSuite_flow_clas= sify.py > index 7f6eba5..2853f5d 100644 > --- a/tests/TestSuite_flow_classify.py > +++ b/tests/TestSuite_flow_classify.py > @@ -247,7 +247,6 @@ class TestFlowClassify(TestCase): > pkt.config_layer(layer, pkt_layers[layer]) > pkt.pktgen.pkt.show() > streams.append(pkt.pktgen.pkt) > - > return streams >=20 > def send_packet_by_scapy(self, config): > @@ -304,8 +303,9 @@ class TestFlowClassify(TestCase): > if not self.is_existed_on_crb(rule_config): > raise VerifyFailure("rules file doesn't existed") > core =3D "1S/1C/1T" > - option =3D r" -c {0} -n 4 --file-prefix=3Dtest -- --rule_ipv4=3D= {1}".format( > - self.get_cores_mask(core), rule_config) > + eal_params =3D self.dut.create_eal_parameters() > + #option =3D r" -c {0} - n 4 --file-prefix=3Dtest {1} -- -- > rule_ipv4=3D{2}".format(self.get_cores_mask(core),eal_params,rule_config) > + option =3D r" {0} -- > + --rule_ipv4=3D{1}".format(eal_params,rule_config) > prompt =3D 'table_entry_delete succeeded' > cmd =3D [' '.join([self.flow_classify, option]), prompt, 30] > output =3D self.d_console(cmd) > @@ -355,6 +355,7 @@ class TestFlowClassify(TestCase): > # begin traffic checking > self.logger.info("begin traffic ... ") > method_name =3D 'send_packet_by_' + pktgen_name > + print('pktname is %s'% pktgen_name) > pkt_gen_func =3D getattr(self, 'send_packet_by_' + pktgen_name) > if pkt_gen_func: > result =3D pkt_gen_func(ports_topo) @@ -435,6 +436,7 @@ clas= s > TestFlowClassify(TestCase): > # close flow_classify > self.close_flow_classify() > except Exception as e: > + print(e) > # close flow_classify > self.close_flow_classify() > msg =3D 'failed to run traffic' > -- > 1.8.3.1