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 1E1E7A0471 for ; Fri, 19 Jul 2019 10:49:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E66DD2BA8; Fri, 19 Jul 2019 10:49:36 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id E825E2082 for ; Fri, 19 Jul 2019 10:49:34 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2019 01:49:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,281,1559545200"; d="scan'208";a="343634773" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 19 Jul 2019 01:49:33 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 19 Jul 2019 01:49:33 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 19 Jul 2019 01:49:32 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.3]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.162]) with mapi id 14.03.0439.000; Fri, 19 Jul 2019 16:49:30 +0800 From: "Mo, YufengX" To: Thinh Tran , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] tests/unit_tests_timer increase timeout Thread-Index: AQHVPZhBsAY0McoRrU2rVNIm2ecQbabRoiag Date: Fri, 19 Jul 2019 08:49:30 +0000 Message-ID: References: <20190718183903.1596-1-thinhtr@linux.vnet.ibm.com> In-Reply-To: <20190718183903.1596-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] 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" Missing `self` in using this_timeout. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Thinh Tran > Sent: Friday, July 19, 2019 2:39 AM > To: dts@dpdk.org > Cc: thinhtr@linux.vnet.ibm.com > Subject: [dts] [PATCH] tests/unit_tests_timer increase timeout >=20 >=20 > - fix the TIMEOUT Failure for some systems have more than 16 cores >=20 >=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..f3bb02d 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>>", this_tim= eout) > 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>>", thi= s_timeout) > self.dut.send_expect("quit", "# ") > self.verify("Test OK" in out, "Test failed") >=20 > -- > 2.17.1