From patchwork Wed Sep 21 14:23:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 116532 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6593EA034C; Wed, 21 Sep 2022 08:24:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 380FB40697; Wed, 21 Sep 2022 08:24:48 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 677514014F for ; Wed, 21 Sep 2022 08:24:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663741486; x=1695277486; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6WmJFm2qNEdTX3p5bieqGZ5S6L2Bi8OWhItyYl4Kujs=; b=kVF5c/ZXuhIQyRsbFUQW37IcSgOgMwyULNRC5xVbOhOAYl1DSeA6o16P UyYlhrv1/NTjOuhb3eyQhVQJAV9unTXYhHqMOeLfsdunTLBlWS0kRrwB2 7sh+vgLvq/MalhF3DVF1iAcINEHEknBuGK0kEWjpS0SqI3mSkASNyMP58 NXukhF3bTPGNO7tN+QCCk2jR7kCGLyn2wmcHdhb4ggTghz3O+rAadwALz ag5AgBErE8kl9mm7T46blnkWHVQNrMH8ZiSKaeiPpTJOUcA0raDLZv2dX JCqgQxFhILNqIEoAu8GhdefLHi4kF3OxUiiokwtId9U87cUfp6Ci4lx2B g==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="282960137" X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="282960137" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 23:24:25 -0700 X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="723065801" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 23:24:23 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1] tests/rte_flow_common: optimize scripts Date: Wed, 21 Sep 2022 14:23:55 +0000 Message-Id: <20220921142355.962191-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 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 --- tests/rte_flow_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: