From patchwork Wed Jul 28 15:15:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, ZhiminX" X-Patchwork-Id: 96348 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 AF4D3A034F; Wed, 28 Jul 2021 08:44:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A698F410FF; Wed, 28 Jul 2021 08:44:15 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id D561B40142 for ; Wed, 28 Jul 2021 08:44:13 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10058"; a="298174558" X-IronPort-AV: E=Sophos;i="5.84,275,1620716400"; d="scan'208";a="298174558" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2021 23:44:12 -0700 X-IronPort-AV: E=Sophos;i="5.84,275,1620716400"; d="scan'208";a="506290521" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2021 23:44:11 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Wed, 28 Jul 2021 23:15:32 +0800 Message-Id: <20210728151532.31188-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/rte_flow_common:fix no fdir matchedid issue 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 Sender: "dts" *.when expect markid is 0 and testpmd not have fdir matchid, it should be failed for this issue, so add empty set judgement. Signed-off-by: Zhimin Huang --- tests/rte_flow_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py index 42afbfd1..591aa5a1 100644 --- a/tests/rte_flow_common.py +++ b/tests/rte_flow_common.py @@ -400,7 +400,7 @@ def check_mark(out, pkt_num, check_param, stats=True): raise Exception("got wrong output, not match pattern %s" % p.pattern) if mark_id is not None: mark_list = set(int(i, CVL_TXQ_RXQ_NUMBER) for i in fdir_scanner.findall(out)) - verify(all([i == check_param["mark_id"] for i in mark_list]), + verify(all([i == check_param["mark_id"] for i in mark_list]) and mark_list, "failed: some packet mark id of %s not match" % mark_list) else: verify(not fdir_flag, "output should not include mark id")