test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_mac_filter:Fixed multicast_filter failure of a due to the previous case stop test_pmd
@ 2020-07-29  7:34 xizhan4x
  2020-07-29  7:35 ` Zhang, XiX
  2020-08-12  5:44 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: xizhan4x @ 2020-07-29  7:34 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x

Fixed multicast_filter failure of a due to the previous case stop test_pmd 

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_mac_filter.py | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/tests/TestSuite_mac_filter.py b/tests/TestSuite_mac_filter.py
index b762c91..e491711 100644
--- a/tests/TestSuite_mac_filter.py
+++ b/tests/TestSuite_mac_filter.py
@@ -55,8 +55,14 @@ class TestMacFilter(TestCase):
         self.dutPorts = self.dut.get_ports()
         # Verify that enough ports are available
         self.verify(len(self.dutPorts) >= 1, "Insufficient ports")
-        portMask = utils.create_mask(self.dutPorts[:1])
 
+
+    def set_up(self):
+        """
+        Run before each test case.
+        Nothing to do.
+        """
+        portMask = utils.create_mask(self.dutPorts[:1])
         self.pmdout = PmdOutput(self.dut)
         self.pmdout.start_testpmd("Default", "--portmask=%s" % portMask)
         self.dut.send_expect("set verbose 1", "testpmd> ")
@@ -75,12 +81,6 @@ class TestMacFilter(TestCase):
 
         self.max_mac_addr = utils.regexp(out, "Maximum number of MAC addresses: ([0-9]+)")
 
-    def set_up(self):
-        """
-        Run before each test case.
-        Nothing to do.
-        """
-        pass
 
     def whitelist_send_packet(self, portid, destMac="00:11:22:33:44:55", count=-1):
         """
@@ -144,6 +144,7 @@ class TestMacFilter(TestCase):
         self.verify("received" not in out,
                     "Packet has been received on a new MAC address that has been removed from the port")
         self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("quit", "# ", 30)
 
     def test_invalid_addresses(self):
         """
@@ -179,6 +180,8 @@ class TestMacFilter(TestCase):
             i = i + 1
 
         self.verify("No space left on device" in out, "added 1 address more than max MAC addresses")
+        self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("quit", "# ", 30)
 
     def test_multicast_filter(self):
         """
@@ -206,6 +209,7 @@ class TestMacFilter(TestCase):
                     "Packet has been received when it should have ignored the broadcast")
 
         self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("quit", "# ", 30)
 
     def tear_down(self):
         """
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_mac_filter:Fixed multicast_filter failure of a due to the previous case stop test_pmd
  2020-07-29  7:34 [dts] [PATCH V1] tests/TestSuite_mac_filter:Fixed multicast_filter failure of a due to the previous case stop test_pmd xizhan4x
@ 2020-07-29  7:35 ` Zhang, XiX
  2020-08-12  5:44 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, XiX @ 2020-07-29  7:35 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 2763 bytes --]

Tested-by: Zhang, XiX <xix.zhang@intel.com>

-----Original Message-----
From: Zhang, XiX 
Sent: Wednesday, July 29, 2020 3:35 PM
To: dts@dpdk.org
Cc: Zhang, XiX <xix.zhang@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_mac_filter:Fixed multicast_filter failure of a due to the previous case stop test_pmd

Fixed multicast_filter failure of a due to the previous case stop test_pmd 

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_mac_filter.py | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/tests/TestSuite_mac_filter.py b/tests/TestSuite_mac_filter.py index b762c91..e491711 100644
--- a/tests/TestSuite_mac_filter.py
+++ b/tests/TestSuite_mac_filter.py
@@ -55,8 +55,14 @@ class TestMacFilter(TestCase):
         self.dutPorts = self.dut.get_ports()
         # Verify that enough ports are available
         self.verify(len(self.dutPorts) >= 1, "Insufficient ports")
-        portMask = utils.create_mask(self.dutPorts[:1])
 
+
+    def set_up(self):
+        """
+        Run before each test case.
+        Nothing to do.
+        """
+        portMask = utils.create_mask(self.dutPorts[:1])
         self.pmdout = PmdOutput(self.dut)
         self.pmdout.start_testpmd("Default", "--portmask=%s" % portMask)
         self.dut.send_expect("set verbose 1", "testpmd> ") @@ -75,12 +81,6 @@ class TestMacFilter(TestCase):
 
         self.max_mac_addr = utils.regexp(out, "Maximum number of MAC addresses: ([0-9]+)")
 
-    def set_up(self):
-        """
-        Run before each test case.
-        Nothing to do.
-        """
-        pass
 
     def whitelist_send_packet(self, portid, destMac="00:11:22:33:44:55", count=-1):
         """
@@ -144,6 +144,7 @@ class TestMacFilter(TestCase):
         self.verify("received" not in out,
                     "Packet has been received on a new MAC address that has been removed from the port")
         self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("quit", "# ", 30)
 
     def test_invalid_addresses(self):
         """
@@ -179,6 +180,8 @@ class TestMacFilter(TestCase):
             i = i + 1
 
         self.verify("No space left on device" in out, "added 1 address more than max MAC addresses")
+        self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("quit", "# ", 30)
 
     def test_multicast_filter(self):
         """
@@ -206,6 +209,7 @@ class TestMacFilter(TestCase):
                     "Packet has been received when it should have ignored the broadcast")
 
         self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("quit", "# ", 30)
 
     def tear_down(self):
         """
--
1.8.3.1


[-- Attachment #2: TestMacFilter.log --]
[-- Type: application/octet-stream, Size: 39337 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_mac_filter:Fixed multicast_filter failure of a due to the previous case stop test_pmd
  2020-07-29  7:34 [dts] [PATCH V1] tests/TestSuite_mac_filter:Fixed multicast_filter failure of a due to the previous case stop test_pmd xizhan4x
  2020-07-29  7:35 ` Zhang, XiX
@ 2020-08-12  5:44 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-08-12  5:44 UTC (permalink / raw)
  To: Zhang, XiX, dts; +Cc: Zhang, XiX

> Fixed multicast_filter failure of a due to the previous case stop test_pmd
> 
> Signed-off-by: xizhan4x <xix.zhang@intel.com>
> ---
>  tests/TestSuite_mac_filter.py | 18 +++++++++++-------

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29  7:34 [dts] [PATCH V1] tests/TestSuite_mac_filter:Fixed multicast_filter failure of a due to the previous case stop test_pmd xizhan4x
2020-07-29  7:35 ` Zhang, XiX
2020-08-12  5:44 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox