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 9D8E5A0530; Tue, 21 Jan 2020 03:56:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 47C411BFC9; Tue, 21 Jan 2020 03:56:32 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 8878C1BFC8 for ; Tue, 21 Jan 2020 03:56:30 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2020 18:56:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,344,1574150400"; d="scan'208";a="258900695" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 20 Jan 2020 18:56:28 -0800 From: "xu,hailin" To: dts@dpdk.org Cc: "xu,hailin" Date: Tue, 21 Jan 2020 11:02:00 +0800 Message-Id: <1579575721-138854-1-git-send-email-hailinx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" Signed-off-by: xu,hailin --- tests/TestSuite_flow_classify.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_flow_classify.py b/tests/TestSuite_flow_classify.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 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 = "1S/1C/1T" - option = r" -c {0} -n 4 --file-prefix=test -- --rule_ipv4={1}".format( - self.get_cores_mask(core), rule_config) + eal_params = self.dut.create_eal_parameters() + #option = r" -c {0} - n 4 --file-prefix=test {1} -- --rule_ipv4={2}".format(self.get_cores_mask(core),eal_params,rule_config) + option = r" {0} -- --rule_ipv4={1}".format(eal_params,rule_config) prompt = 'table_entry_delete succeeded' cmd = [' '.join([self.flow_classify, option]), prompt, 30] output = self.d_console(cmd) @@ -355,6 +355,7 @@ class TestFlowClassify(TestCase): # begin traffic checking self.logger.info("begin traffic ... ") method_name = 'send_packet_by_' + pktgen_name + print('pktname is %s'% pktgen_name) pkt_gen_func = getattr(self, 'send_packet_by_' + pktgen_name) if pkt_gen_func: result = pkt_gen_func(ports_topo) @@ -435,6 +436,7 @@ class TestFlowClassify(TestCase): # close flow_classify self.close_flow_classify() except Exception as e: + print(e) # close flow_classify self.close_flow_classify() msg = 'failed to run traffic' -- 1.8.3.1