[V1] tests/multiprocess_iavf: the optimization script sorts the result check list

Message ID 20221227075651.15266-1-weiyuanx.li@intel.com (mailing list archive)
State Superseded
Headers
Series [V1] tests/multiprocess_iavf: the optimization script sorts the result check list |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Weiyuan Li Dec. 27, 2022, 7:56 a.m. UTC
  The optimization script sorts the results that match the regular.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_multiprocess_iavf.py | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/tests/TestSuite_multiprocess_iavf.py b/tests/TestSuite_multiprocess_iavf.py
index bb8e0c98..10c5a74d 100644
--- a/tests/TestSuite_multiprocess_iavf.py
+++ b/tests/TestSuite_multiprocess_iavf.py
@@ -1068,6 +1068,7 @@  class TestMultiprocessIavf(TestCase):
             r"Port \d+\s+-\s+rx:\s+(?P<rx>\d+)\s+tx:.*PORTS", out, re.DOTALL
         )
         rx_num = re.findall(r"Client\s+\d\s+-\s+rx:\s+(\d+)", res.group(0))
+        rx_num.sort(reverse=True)
         for i in range(proc_num):
             self.verify(
                 int(rx_num[i]) > 0,