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 444B5A046B for ; Tue, 23 Jul 2019 05:05:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2DCE51BEDE; Tue, 23 Jul 2019 05:05:46 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0271B1BED6 for ; Tue, 23 Jul 2019 05:05:41 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jul 2019 20:05:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,297,1559545200"; d="scan'208";a="196964162" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 22 Jul 2019 20:05:40 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 22 Jul 2019 20:05:40 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 22 Jul 2019 20:05:39 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 22 Jul 2019 20:05:39 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.3]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.240]) with mapi id 14.03.0439.000; Tue, 23 Jul 2019 11:05:38 +0800 From: "Mo, YufengX" To: Thinh Tran CC: "dts@dpdk.org" Thread-Topic: [dts][PATCH V3] tests/unit_tests_timer increase timeout Thread-Index: AQHVQI+Z2YcleV7Hykmi4yOEIb54FKbXhWSw Date: Tue, 23 Jul 2019 03:05:37 +0000 Message-ID: References: <20190722131532.751-1-thinhtr@linux.vnet.ibm.com> In-Reply-To: <20190722131532.751-1-thinhtr@linux.vnet.ibm.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 V3] tests/unit_tests_timer increase timeout 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" Signed-off-by: Mo, YufengX > -----Original Message----- > From: Thinh Tran [mailto:thinhtr@linux.vnet.ibm.com] > Sent: Monday, July 22, 2019 9:16 PM > To: Mo, YufengX > Cc: dts@dpdk.org; thinhtr@linux.vnet.ibm.com > Subject: [dts][PATCH V3] tests/unit_tests_timer increase timeout >=20 > - fix the TIMEOUT Failure for some systems have more than 16 cores >=20 > Signed-off-by: Thinh Tran > --- > tests/TestSuite_unit_tests_timer.py | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_unit_tests_timer.py b/tests/TestSuite_unit_t= ests_timer.py > index 717dab8..365c5f6 100644 > --- a/tests/TestSuite_unit_tests_timer.py > +++ b/tests/TestSuite_unit_tests_timer.py > @@ -59,6 +59,13 @@ class TestUnitTestsTimer(TestCase): > """ > cores =3D self.dut.get_core_list("all") > self.coremask =3D utils.create_mask(cores) > + # > + # change timeout base number of cores on the system > + # default 60 secs > + # > + self.this_timeout =3D 60 > + if (len(cores) > 16) : > + self.this_timeout =3D self.this_timeout * len(cores)/16 >=20 > def set_up(self): > """ > @@ -71,7 +78,7 @@ class TestUnitTestsTimer(TestCase): > Run timer autotest. > """ > self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, = self.coremask), "R.*T.*E.*>.*>", 60) > - out =3D self.dut.send_expect("timer_autotest", "RTE>>", 60) > + 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") >=20 > @@ -80,7 +87,7 @@ class TestUnitTestsTimer(TestCase): > Run timer autotest. > """ > self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, = self.coremask), "R.*T.*E.*>.*>", 60) > - out =3D self.dut.send_expect("timer_perf_autotest", "RTE>>", 60) > + out =3D self.dut.send_expect("timer_perf_autotest", "RTE>>", sel= f.this_timeout) > self.dut.send_expect("quit", "# ") > self.verify("Test OK" in out, "Test failed") >=20 > -- > 2.17.1