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 3AC07A0519; Mon, 22 Jun 2020 07:58:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B507A1C19B; Mon, 22 Jun 2020 07:58:58 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C17A81C193 for ; Mon, 22 Jun 2020 07:58:57 +0200 (CEST) IronPort-SDR: ZuLBzXmeMeenvquSVTn0LM+frwkvApwCe90rKVAP4o2taErQa4Uqz+8AZ6YBbII7/MEZ5aSByV 6aD59SQDhVqQ== X-IronPort-AV: E=McAfee;i="6000,8403,9659"; a="228340904" X-IronPort-AV: E=Sophos;i="5.75,265,1589266800"; d="scan'208";a="228340904" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2020 22:58:57 -0700 IronPort-SDR: NnuzmoQiW04y4slR6++FymfsjGvWww+2lMjkd1FdGrdELp4p89gb89J2rnYMAesZ4c1WI+4kPz 2T5nmS/V5bQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,265,1589266800"; d="scan'208";a="478331705" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga005.fm.intel.com with ESMTP; 21 Jun 2020 22:58:55 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Mon, 22 Jun 2020 13:59:34 +0800 Message-Id: <20200622055935.12025-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200622055935.12025-1-yufengx.mo@intel.com> References: <20200622055935.12025-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 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