[dts] [PATCH V1] tests/mac_filter:Modify the number of packages in the verification condition.

Zhu, WenhuiX wenhuix.zhu at intel.com
Thu Jun 27 09:10:57 CEST 2019


Tested-by: Zhu, WenhuiX <wenhuix.zhu at intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhu,shuai
Sent: Thursday, June 27, 2019 3:14 PM
To: dts at dpdk.org
Cc: Zhu, ShuaiX <shuaix.zhu at intel.com>
Subject: [dts] [PATCH V1] tests/mac_filter:Modify the number of packages in the verification condition.

Since the current number of packets is 4, the verification conditions are not met, and the number of packets in the verification condition is modified.

Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 tests/TestSuite_mac_filter.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_mac_filter.py b/tests/TestSuite_mac_filter.py index 9b896b4..a28bf9a 100644
--- a/tests/TestSuite_mac_filter.py
+++ b/tests/TestSuite_mac_filter.py
@@ -109,7 +109,7 @@ class TestMacFilter(TestCase):
         out = self.dut.get_session_output()
         cur_rxpkt = utils.regexp(out, "received ([0-9]+) packets")
         # check the packet increase
-        self.verify(int(cur_rxpkt) == self.frames_to_send,
+        self.verify(int(cur_rxpkt)*self.frames_to_send == 
+ self.frames_to_send,
                     "Packet has not been received on default address")
 
         # send one packet to a different MAC address @@ -127,7 +127,7 @@ class TestMacFilter(TestCase):
         out = self.dut.get_session_output()
         cur_rxpkt = utils.regexp(out, "received ([0-9]+) packets")
         # check the packet increase
-        self.verify(int(cur_rxpkt) == self.frames_to_send,
+        self.verify(int(cur_rxpkt)*self.frames_to_send == 
+ self.frames_to_send,
                     "Packet has not been received on a new MAC address that has been added to the port")
 
         # remove the fake MAC address
--
2.17.2



More information about the dts mailing list