[V1] tests/rte_flow_common: optimize scripts
Checks
Commit Message
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(-)
@@ -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: