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 8D3ACA0350; Wed, 24 Jun 2020 03:39:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F9601D6FA; Wed, 24 Jun 2020 03:39:20 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id E407D1D6ED for ; Wed, 24 Jun 2020 03:39:16 +0200 (CEST) IronPort-SDR: SF7U5QZQmV0ywerjasqNxUJ/IiQAdiR4FXOzcqftTq7OVoBvOvFzQKt3ut4UthCd1xhjs10jcW EixT2cMw2Oxg== X-IronPort-AV: E=McAfee;i="6000,8403,9661"; a="141785629" X-IronPort-AV: E=Sophos;i="5.75,273,1589266800"; d="scan'208";a="141785629" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 18:39:16 -0700 IronPort-SDR: sj50WNd5hBLNc5q61RxjtEVYeiKt6GtTRTImIXpUpyAR4gIub+JvY1Hbp53DMYTx10hnzN8Uh+ 6FhZ7Y4uYFNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,273,1589266800"; d="scan'208";a="423212138" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by orsmga004.jf.intel.com with ESMTP; 23 Jun 2020 18:39:14 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Wed, 24 Jun 2020 09:39:18 +0800 Message-Id: <20200624013919.16435-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200624013919.16435-1-yufengx.mo@intel.com> References: <20200624013919.16435-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2 1/2] tests/power_empty_poll: add suite 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" select traffic frame size in suite cfg file. Signed-off-by: yufengmx --- tests/TestSuite_power_empty_poll.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_power_empty_poll.py b/tests/TestSuite_power_empty_poll.py index 7b35b9d..93843f7 100644 --- a/tests/TestSuite_power_empty_poll.py +++ b/tests/TestSuite_power_empty_poll.py @@ -141,7 +141,7 @@ class TestPowerEmptyPoll(TestCase): 'type': 'UDP', 'pkt_layers': { 'ipv4': {'dst': '1.1.1.1'}, - 'raw': {'payload': ['58'] * self.get_pkt_len('udp', frame_size=1024)}}}, + 'raw': {'payload': ['58'] * self.get_pkt_len('udp', frame_size=self.frame_size)}}}, } # create packet instance for send streams = [] @@ -390,6 +390,8 @@ class TestPowerEmptyPoll(TestCase): def preset_test_environment(self): self.is_l3fwd_on = None self.cpu_info, self.base_freqs_info = self.get_all_cpu_attrs() + test_content = self.get_suite_cfg() + self.frame_size = test_content.get('frame_size') or 1024 self.check_core = self.get_normal_cores_index(2) self.verify_hyper_threading() # modprobe msr module to let the application can get the CPU HW info -- 2.21.0