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 604F3A00E6 for ; Fri, 22 Mar 2019 02:53:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 33B601B555; Fri, 22 Mar 2019 02:53:46 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 148A81B554 for ; Fri, 22 Mar 2019 02:53:44 +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 orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 18:53:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,255,1549958400"; d="scan'208";a="154026003" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 21 Mar 2019 18:53:42 -0700 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Fri, 22 Mar 2019 09:57:39 +0800 Message-Id: <1553219859-74302-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" 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 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(-) 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 = "sed -i '4i\link LINK3 dev %s' ./drivers/net/softnic/flow_classify_softnic/%s" % (self.dut_p3_pci, 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) + def set_table(self, cmd, filename): """ @@ -1349,10 +1351,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