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 E2557A0096 for ; Fri, 15 Mar 2019 10:51:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 87A2B2C28; Fri, 15 Mar 2019 10:51:00 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id D16C72C24 for ; Fri, 15 Mar 2019 10:50:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Mar 2019 02:50:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,481,1544515200"; d="scan'208";a="214424237" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 15 Mar 2019 02:50:56 -0700 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Fri, 15 Mar 2019 17:54:56 +0800 Message-Id: <1552643696-35412-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] 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" 1. the thread number should be equal to the port number, update it 2. move dut.kill_all() to tear_down() to avoid the interactions between cases Signed-off-by: Wenjie Li --- tests/TestSuite_flow_classify_softnic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py index 66db5c3..1a1756f 100644 --- a/tests/TestSuite_flow_classify_softnic.py +++ b/tests/TestSuite_flow_classify_softnic.py @@ -117,6 +117,7 @@ class TestFlowClassifySoftnic(TestCase): self.dut.send_expect("sed -i '/^pipeline RX table match/d' ./drivers/net/softnic/flow_classify_softnic/%s" % filename, "# ", 20) command = "sed -i \'/^table action/a" + cmd + "\' ./drivers/net/softnic/flow_classify_softnic/%s" % filename self.dut.send_expect(command, "# ", 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) def tcpdump_start_sniff(self, interface, filters=""): """ @@ -1349,10 +1350,10 @@ class TestFlowClassifySoftnic(TestCase): """ Run after each test case. """ - pass + self.dut.kill_all() def tear_down_all(self): """ Run after each test suite. """ - self.dut.kill_all() + pass -- 2.17.2