[dts][PATCH V1] tests/vf_offload: the optimization script sorts the result check list

Weiyuan Li weiyuanx.li at intel.com
Wed Oct 19 04:36:25 CEST 2022


On some test platforms, the list of results after tso fragment capture is unordered, and sorting needs to be added.

Signed-off-by: Weiyuan Li <weiyuanx.li at intel.com>
---
 tests/TestSuite_vf_offload.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
index c70b24f4..75c75f05 100644
--- a/tests/TestSuite_vf_offload.py
+++ b/tests/TestSuite_vf_offload.py
@@ -584,6 +584,7 @@ class TestVfOffload(TestCase):
             rx_stats = self.number_of_packets(rx_interface)
             tx_stats = self.number_of_packets(tx_interface)
             tx_outlist = self.number_of_bytes(rx_interface)
+            tx_outlist.sort(reverse=True)
             self.logger.info(tx_outlist)
             if loading_size <= 800:
                 self.verify(
@@ -618,6 +619,7 @@ class TestVfOffload(TestCase):
             rx_stats = self.number_of_packets(rx_interface)
             tx_stats = self.number_of_packets(tx_interface)
             tx_outlist = self.number_of_bytes(rx_interface)
+            tx_outlist.sort(reverse=True)
             self.logger.info(tx_outlist)
             if loading_size <= 800:
                 self.verify(
-- 
2.25.1



More information about the dts mailing list