From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5808A0579; Thu, 8 Apr 2021 12:14:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B02B914106D; Thu, 8 Apr 2021 12:14:56 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 4087B141058 for ; Thu, 8 Apr 2021 12:14:55 +0200 (CEST) IronPort-SDR: KX7DjcExHPb+ivsx/1aJ1uYe1tfLXWkp8AXRMZ+zWwZQxCcRPOUjXVR/1ddGn6V0WedEs33QMz aUDOKQZEGd1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="278778986" X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="278778986" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 03:14:54 -0700 IronPort-SDR: vrD2qkPhCwELvPWsqG8nO5wckyhJXI6nyFLmORXjBAWJVnfmb1DCR9RyzE5/05XDiA1L0j4fsQ LDZ3Vgw2LcBA== X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="422174036" 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:14:52 -0700 From: Xia Yan To: dts@dpdk.org Cc: Xia Yan Date: Thu, 8 Apr 2021 18:19:30 +0800 Message-Id: <20210408101930.18682-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCG V1] tests/generic_flow_api: Amend the queue list to 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} -- 2.17.1