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 8F864A00C5; Fri, 29 May 2020 09:29:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BC5EA1DC3B; Fri, 29 May 2020 09:29:32 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id C8F121DC30 for ; Fri, 29 May 2020 09:29:31 +0200 (CEST) IronPort-SDR: HUHCGT0/MwAHtSTYBNBUBV6Ia4A5dqYOQ3zCTpZuY6ffpTvTvsLjqIX4bAEEYAx+PpNlCctHQ3 6GZ/tlwotLXQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2020 00:29:31 -0700 IronPort-SDR: 72tgvuNaT06IaEV6ostJOB8Mi8XcB5H5vdXz3RqI8bGUf+jdXsN2DoaRQsti4nppWJTbFd3ufB Qng+Bm8vMd0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,447,1583222400"; d="scan'208";a="256429947" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by orsmga007.jf.intel.com with ESMTP; 29 May 2020 00:29:30 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 29 May 2020 15:30:22 +0800 Message-Id: <20200529073023.15259-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200529073023.15259-1-yufengx.mo@intel.com> References: <20200529073023.15259-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/2] tests/power_pstate: set check core in cfg file 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" set check core in cfg file. Signed-off-by: yufengmx --- tests/TestSuite_power_pstate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_power_pstate.py b/tests/TestSuite_power_pstate.py index 7ee6c8f..2ee0981 100644 --- a/tests/TestSuite_power_pstate.py +++ b/tests/TestSuite_power_pstate.py @@ -316,7 +316,7 @@ class TestPowerPstate(TestCase): try: self.start_vm_power_mgr() # select one core to run testing - core_index = 1 + core_index = self.test_content.get('check_core') or 20 # Enable turbo Boost for this core self.send_json_command(core_index, 'ENABLE_TURBO') # these test items sequence can't changed @@ -359,6 +359,7 @@ class TestPowerPstate(TestCase): self.verify_power_driver() self.verify_hyper_threading() self.init_test_binary_file() + self.test_content = self.get_suite_cfg() def set_up(self): """ -- 2.21.0