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 06390A0553; Mon, 17 Feb 2020 10:46:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E4FD51DB97; Mon, 17 Feb 2020 10:45:59 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id BF35D1DB1F for ; Mon, 17 Feb 2020 10:45:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 01:45:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,452,1574150400"; d="scan'208";a="235182034" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 17 Feb 2020 01:45:57 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 17 Feb 2020 01:45:56 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 17 Feb 2020 01:45:56 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.5]) with mapi id 14.03.0439.000; Mon, 17 Feb 2020 17:45:54 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Ma, LihongX" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support Thread-Index: AQHV5VFrvWDO07ACqUmIKa5uMzrF16gfI3Aw Date: Mon, 17 Feb 2020 09:45:53 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBC9AF4@SHSMSX101.ccr.corp.intel.com> References: <20200217051833.14297-1-yufengx.mo@intel.com> <20200217051833.14297-2-yufengx.mo@intel.com> In-Reply-To: <20200217051833.14297-2-yufengx.mo@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx > Sent: Monday, February 17, 2020 1:19 PM > To: dts@dpdk.org; Ma, LihongX > Cc: Mo, YufengX > Subject: [dts] [PATCH V1 1/1] tests/unit_tests_timer: x722 support >=20 >=20 > tests/unit_tests_timer: x722 support. >=20 > x722 support. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_unit_tests_timer.py | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_unit_tests_timer.py > b/tests/TestSuite_unit_tests_timer.py > index d53d827..525220c 100644 > --- a/tests/TestSuite_unit_tests_timer.py > +++ b/tests/TestSuite_unit_tests_timer.py > @@ -72,12 +72,18 @@ class TestUnitTestsTimer(TestCase): > """ > pass >=20 > + def get_nic_timeout(self): > + if self.nic in ["x722_37d2"]: > + return 120 > + return 60 > + > def test_timer(self): > """ > Run timer autotest. > """ > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= ) > - self.dut.send_expect("./%s/app/test %s" % (self.target, eal_para= ms), > "R.*T.*E.*>.*>", 60) > + timeout =3D self.get_nic_timeout() > + self.dut.send_expect("./%s/app/test %s" % (self.target, eal_para= ms), > "R.*T.*E.*>.*>", timeout) > out =3D self.dut.send_expect("timer_autotest", "RTE>>", self.thi= s_timeout) > self.dut.send_expect("quit", "# ") > self.verify("Test OK" in out, "Test failed") > -- > 2.21.0