[V1] tests/vf_offload: the optimization script sorts the result check list
Checks
Commit Message
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@intel.com>
---
tests/TestSuite_vf_offload.py | 2 ++
1 file changed, 2 insertions(+)
Comments
> -----Original Message-----
> From: Weiyuan Li <weiyuanx.li@intel.com>
> Sent: Wednesday, October 19, 2022 10:36 AM
> To: dts@dpdk.org
> Cc: Li, WeiyuanX <weiyuanx.li@intel.com>
> Subject: [dts][PATCH V1] tests/vf_offload: the optimization script sorts the
> result check list
>
> 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@intel.com>
> ---
Tested-by: Lingli Chen <linglix.chen@intel.com>
On Wed, 19 Oct 2022 10:36:25 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> 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@intel.com>
Applied, thanks
@@ -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(