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 3014AA0471 for ; Thu, 18 Jul 2019 20:39:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 27BD51DBE; Thu, 18 Jul 2019 20:39:46 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 7EE47DE3 for ; Thu, 18 Jul 2019 20:39:45 +0200 (CEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6IIb0DH012277 for ; Thu, 18 Jul 2019 14:39:44 -0400 Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ttvupbd23-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 18 Jul 2019 14:39:44 -0400 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x6IIZKf4010651 for ; Thu, 18 Jul 2019 18:39:43 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma01dal.us.ibm.com with ESMTP id 2tq6x79by3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 18 Jul 2019 18:39:43 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6IIdgvP16253878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Jul 2019 18:39:42 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A4485B206E; Thu, 18 Jul 2019 18:39:42 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 67224B205F; Thu, 18 Jul 2019 18:39:42 +0000 (GMT) Received: from LAPTOP-EKJMKVH8.austin.ibm.com (unknown [9.53.179.223]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 18 Jul 2019 18:39:42 +0000 (GMT) From: Thinh Tran To: dts@dpdk.org Cc: thinhtr@linux.vnet.ibm.com Date: Thu, 18 Jul 2019 13:39:03 -0500 Message-Id: <20190718183903.1596-1-thinhtr@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-18_09:, , 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=1011 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-1907180189 Subject: [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" - 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..f3bb02d 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>>", 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>>", this_timeout) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") -- 2.17.1