From patchwork Thu Apr 8 10:30:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 90879 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 7750CA0579; Thu, 8 Apr 2021 12:25:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E69A140FF9; Thu, 8 Apr 2021 12:25:51 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 23E8D40698 for ; Thu, 8 Apr 2021 12:25:49 +0200 (CEST) IronPort-SDR: oDh5qO22Y/VIv7tXLkZCDM4zQqmIzPB2b9PIcrGM6KZ2wHBviSa9orCO6J3pJqkbO2KxVLTrsM pXgHPSsruYUQ== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="173590475" X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="173590475" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 03:25:49 -0700 IronPort-SDR: nRcO/af9etp60HUkYJczXxg2VN4XpMqDhWKyl5KgPNiP1jqjQUv4GveUsz4BP0d21T3fhpZJiV +ZhePJIGwtFg== X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="422177094" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 03:25:47 -0700 From: Xia Yan To: dts@dpdk.org Cc: Xia Yan Date: Thu, 8 Apr 2021 18:30:24 +0800 Message-Id: <20210408103024.18906-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/generic_flow_api: Amend the queue list 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" origin: Collect the queue for flow rule validate & create and leave it for later validation now: only collect flow rule create for later verification, the queue during validate does not need to be verified Signed-off-by: Xia Yan --- tests/TestSuite_generic_flow_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_generic_flow_api.py b/tests/TestSuite_generic_flow_api.py index 6822f8ab..e8171589 100644 --- a/tests/TestSuite_generic_flow_api.py +++ b/tests/TestSuite_generic_flow_api.py @@ -241,11 +241,11 @@ class TestGeneric_flow_api(TestCase): for flow_action in basic_flow_actions: # generate the flow rule and corresponding packet. flow_process = self.generate_random_command(**flow_action) - expected_queue.append(flow_process['queue']) # caculate the rule number created. rule_created = self.flow_test_process(flow_process, flow_action) if rule_created: rule_num += 1 + expected_queue.append(flow_process['queue']) extra_packet.append(flow_process['extrapacket']) # Configure a return value. extrapkt_rulenum = {'extrapacket': extra_packet, 'rulenum': rule_num, 'queue': expected_queue}