From patchwork Thu Aug 27 14:13:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Nannan" X-Patchwork-Id: 76059 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D8FBDA04B1; Thu, 27 Aug 2020 07:23:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 47D5D1B951; Thu, 27 Aug 2020 07:23:00 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id F1C761F1C for ; Thu, 27 Aug 2020 07:22:57 +0200 (CEST) IronPort-SDR: yNPwtDP4rXDy+rgzQ+7c3guISi1r/Dh5r6zodS1nT63HZejq/aE/K3cg3vbchvOYJKZ3XykBtk BSkgfftRVUHQ== X-IronPort-AV: E=McAfee;i="6000,8403,9725"; a="144101523" X-IronPort-AV: E=Sophos;i="5.76,358,1592895600"; d="scan'208";a="144101523" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2020 22:22:56 -0700 IronPort-SDR: N4mBNVIlxYk8/QfPUpDzBl6SqpkSibTd8hY+U2dV06BVkCcqnFHBLYZYsXXt2xJy4+hoQVfAYz cmTDJUFbgWCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,358,1592895600"; d="scan'208";a="313114169" Received: from dpdk-lunannan.sh.intel.com ([10.67.111.68]) by orsmga002.jf.intel.com with ESMTP; 26 Aug 2020 22:22:56 -0700 From: Nannan Lu To: dts@dpdk.org Cc: Nannan Lu Date: Thu, 27 Aug 2020 14:13:17 +0000 Message-Id: <1598537597-771420-1-git-send-email-nannan.lu@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/TestSuite_cvl_switch_filter.py: add validate check for unsupported_pattern_in_OS_default_package case X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" tests/TestSuite_cvl_switch_filter.py: add validate check for unsupported_pattern_in_OS_default_package case Signed-off-by: Nannan Lu --- tests/TestSuite_cvl_switch_filter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_cvl_switch_filter.py b/tests/TestSuite_cvl_switch_filter.py index 339dae6..27815d5 100644 --- a/tests/TestSuite_cvl_switch_filter.py +++ b/tests/TestSuite_cvl_switch_filter.py @@ -5588,10 +5588,10 @@ class CVLSwitchFilterTest(TestCase): self.bind_nics_driver(self.dut_ports, driver="vfio-pci") self.launch_testpmd(False) - # rule_list = self.validate_switch_filter_rule(rule, check_stats=False) - # self.verify(not any(rule_list), "all rules should validate failed, result %s" % rule_list) - # result = self.check_switch_filter_rule_list(self.dut_ports[0], is_non_pipeline=False, is_need_rss_rule=False, check_stats=False) - # self.verify(result == [], "the rule list is not the same. expect %s, result %s" % ([], result)) + rule_list = self.validate_switch_filter_rule(rule, check_stats=False) + self.verify(not any(rule_list), "all rules should validate failed, result %s" % rule_list) + result = self.check_switch_filter_rule_list(self.dut_ports[0], is_non_pipeline=False, is_need_rss_rule=False, check_stats=False) + self.verify(result == [], "the rule list is not the same. expect %s, result %s" % ([], result)) rule_list = self.create_switch_filter_rule(rule, check_stats=False) self.verify(not any(rule_list), "all rules should create failed, result %s" % rule_list) result = self.check_switch_filter_rule_list(self.dut_ports[0], is_non_pipeline=False, is_need_rss_rule=False, check_stats=False)