diff mbox series

[V1] tests/rte_flow_common: optimize scripts

Message ID 20220921142355.962191-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/rte_flow_common: optimize scripts | expand

Checks

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

Commit Message

Song Jiale Sept. 21, 2022, 2:23 p.m. UTC
1. "check_queue" is repeated, delete one.
2. the method "check_rss" requires the parameter "rxq", so pass the parameter 
"rxq" to the variable "check_param".

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/rte_flow_common.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py
index 87892c13..02c85f85 100644
--- a/tests/rte_flow_common.py
+++ b/tests/rte_flow_common.py
@@ -129,6 +129,7 @@  def check_output_log_queue_region_mismatched(out, func_param, expect_results):
         func_param["expect_port"] if func_param["expect_port"] else 0
     )
     check_param["queue"] = func_param["expect_queues"]
+    check_param["rxq"] = func_param["rxq"]
     try:
         check_queue(out, expect_pkts, check_param, stats=False)
     except Exception as ex:
@@ -151,7 +152,7 @@  def check_output_log_in_queue_mismatched(out, func_param, expect_results):
         func_param["expect_port"] if func_param["expect_port"] else 0
     )
     check_param["queue"] = func_param["expect_queues"]
-    check_queue(out, expect_pkts, check_param, stats=False)
+    check_param["rxq"] = func_param["rxq"]
     try:
         check_queue(out, expect_pkts, check_param, stats=False)
     except Exception as ex: