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 D99D6A046B for ; Mon, 22 Jul 2019 15:15:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B92D31BF9A; Mon, 22 Jul 2019 15:15:44 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by dpdk.org (Postfix) with ESMTP id D733D1BF99 for ; Mon, 22 Jul 2019 15:15:43 +0200 (CEST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6MDCoNc132444 for ; Mon, 22 Jul 2019 09:15:43 -0400 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0a-001b2d01.pphosted.com with ESMTP id 2twdr8gdn0-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 22 Jul 2019 09:15:42 -0400 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 22 Jul 2019 14:15:42 +0100 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 22 Jul 2019 14:15:40 +0100 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6MDFddw18678236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Jul 2019 13:15:39 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5B41FC6055; Mon, 22 Jul 2019 13:15:39 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E073C6059; Mon, 22 Jul 2019 13:15:39 +0000 (GMT) Received: from LAPTOP-EKJMKVH8.austin.ibm.com (unknown [9.53.179.223]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 22 Jul 2019 13:15:38 +0000 (GMT) From: Thinh Tran To: yufengx.mo@intel.com Cc: dts@dpdk.org, thinhtr@linux.vnet.ibm.com Date: Mon, 22 Jul 2019 08:15:32 -0500 X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-TM-AS-GCONF: 00 x-cbid: 19072213-8235-0000-0000-00000EBC68BC X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011474; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000287; SDB=6.01235826; UDB=6.00651305; IPR=6.01017176; MB=3.00027838; MTD=3.00000008; XFM=3.00000015; UTC=2019-07-22 13:15:41 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19072213-8236-0000-0000-0000467FF62E Message-Id: <20190722131532.751-1-thinhtr@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-22_10:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907220152 Subject: [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" - fix the TIMEOUT Failure for some systems have more than 16 cores Signed-off-by: Thinh Tran --- tests/TestSuite_unit_tests_timer.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_timer.py b/tests/TestSuite_unit_tests_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 = self.dut.get_core_list("all") self.coremask = utils.create_mask(cores) + # + # change timeout base number of cores on the system + # default 60 secs + # + self.this_timeout = 60 + if (len(cores) > 16) : + self.this_timeout = self.this_timeout * len(cores)/16 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 = self.dut.send_expect("timer_autotest", "RTE>>", 60) + out = self.dut.send_expect("timer_autotest", "RTE>>", self.this_timeout) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") @@ -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 = self.dut.send_expect("timer_perf_autotest", "RTE>>", 60) + out = self.dut.send_expect("timer_perf_autotest", "RTE>>", self.this_timeout) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") -- 2.17.1