From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11349A04C9; Wed, 16 Sep 2020 14:45:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 472E31C2E8; Wed, 16 Sep 2020 14:45:00 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6FF631C299 for ; Wed, 16 Sep 2020 14:44:59 +0200 (CEST) IronPort-SDR: PAenFDBRe3+c1eiZ334FjqnSccdyRpMRxokmBWr4OKSxk8TxyT+C/d6GkakFWX2V2q8IDlAj6A 7zK4/Jc46qqQ== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="160383162" X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="160383162" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 05:44:59 -0700 IronPort-SDR: G4PSwIM+SiAlqTPzWmgo40a/emXe1KkwVU5qVHSr+vEfSuhvbwjya+oIij7hSNozU0F80d6izR drs+FSmRZ7Fw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="409542302" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by fmsmga001.fm.intel.com with ESMTP; 16 Sep 2020 05:44:57 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: "Zhou, Jun" , Zhou@dpdk.org Date: Wed, 16 Sep 2020 12:29:45 +0000 Message-Id: <20200916122951.17646-5-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200916122951.17646-1-junx.w.zhou@intel.com> References: <20200916122951.17646-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 04/10] tests/TestSuite_dynamic_flowtype.py: Instead of getting the rxq&txq value from common_base to rte_config.h 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" Instead of getting the rxq&txq value from common_base to rte_config.h Signed-off-by: Zhou, Jun --- tests/TestSuite_dynamic_flowtype.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_dynamic_flowtype.py b/tests/TestSuite_dynamic_flowtype.py index b12a4290..90b53167 100644 --- a/tests/TestSuite_dynamic_flowtype.py +++ b/tests/TestSuite_dynamic_flowtype.py @@ -24,7 +24,7 @@ class TestDynamicFlowtype(TestCase): profile_file = 'dep/gtp.pkgo' profile_dst = "/tmp/" self.dut.session.copy_file_to(profile_file, profile_dst) - PF_Q_strip = 'CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF' + PF_Q_strip = 'RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF' self.PF_QUEUE = self.search_queue_number(PF_Q_strip) def set_up(self): @@ -41,8 +41,8 @@ class TestDynamicFlowtype(TestCase): """ Search max queue number from configuration. """ - out = self.dut.send_expect("cat config/common_base", "]# ", 10) - pattern = "(%s=)(\d*)" % Q_strip + out = self.dut.send_expect("cat config/rte_config.h", "]# ", 10) + pattern = "define (%s) (\d*)" % Q_strip s = re.compile(pattern) res = s.search(out) if res is None: -- 2.25.1