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 C65E2A00BE; Thu, 28 May 2020 09:30:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACD861DA7C; Thu, 28 May 2020 09:30:29 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0D9F91DA7B for ; Thu, 28 May 2020 09:30:25 +0200 (CEST) IronPort-SDR: 6lWIZsq+orMVzDdRXV3MpjkhSJHRpoWd1zY6EnleMkl5uvm8xBWmVXnA3jkt6EEjOYystoLFuE lgu39Qf0229Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 00:30:25 -0700 IronPort-SDR: CgccR9ZHUzgI6N3Y9ip4bWqwecP4tywxfpT6y14x6wRnQMhBxdPeJRBnBJrA7KzKTMQ35sIVYp AaPCZkLvgGHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,443,1583222400"; d="scan'208";a="267126971" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by orsmga003.jf.intel.com with ESMTP; 28 May 2020 00:30:24 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 28 May 2020 15:31:19 +0800 Message-Id: <20200528073119.9344-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200528073119.9344-1-yufengx.mo@intel.com> References: <20200528073119.9344-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] tests/power_pbf: add one more check pattern 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" :: add one more check pattern. Signed-off-by: yufengmx --- tests/TestSuite_power_pbf.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_power_pbf.py b/tests/TestSuite_power_pbf.py index 0f312f5..8fcab51 100644 --- a/tests/TestSuite_power_pbf.py +++ b/tests/TestSuite_power_pbf.py @@ -367,6 +367,9 @@ class TestPowerPbf(TestCase): pat_begin = ( 'POWER: power_set_governor_performance: Power management ' 'governor of lcore (\\d+) is already performance') + pat_begin2 = ( + 'Power management governor of lcore (\d+) ' + 'has been set to performance successfully') pat_end = \ 'POWER: Initialized successfully for lcore (\\d+) power management' pat_freq = ( @@ -378,8 +381,12 @@ class TestPowerPbf(TestCase): for line in output.splitlines(): # if core output begin message result = re.findall(pat_begin, line) - if result: - core_id = int(result[0]) + result2 = re.findall(pat_begin2, line) + if result or result2: + if result: + core_id = int(result[0]) + elif result2: + core_id = int(result2[0]) flag = True if flag: result = re.findall(pat_freq, line) -- 2.21.0