test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/flow_classify_softnic: update the thread number
@ 2019-03-15  9:54 Wenjie Li
  0 siblings, 0 replies; only message in thread
From: Wenjie Li @ 2019-03-15  9:54 UTC (permalink / raw)
  To: dts; +Cc: Wenjie Li

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 <wenjiex.a.li@intel.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-15  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15  9:54 [dts] [PATCH V1] tests/flow_classify_softnic: update the thread number Wenjie Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).