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 1852AA04F2; Fri, 6 Dec 2019 06:45:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9F321BF95; Fri, 6 Dec 2019 06:45:52 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 7CCC21BF7B for ; Fri, 6 Dec 2019 06:45:51 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2019 21:45:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,283,1571727600"; d="scan'208";a="219357023" Received: from unknown (HELO dpdk-wenjielx-KVM190.icx.intel.com) ([10.238.54.190]) by fmsmga001.fm.intel.com with ESMTP; 05 Dec 2019 21:45:49 -0800 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Fri, 6 Dec 2019 14:30:09 +0000 Message-Id: <1575642609-25830-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s 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" exit the loop in 5s at most; if the status still not equel to expected_status, return False and make the case fail. Signed-off-by: Wenjie Li --- tests/TestSuite_userspace_ethtool.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index f5583f2..e10c376 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -231,6 +231,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): if status == expected_status: return True time.sleep(1) + retries = retries + 1 return False def test_dump_driver_info(self): -- 2.17.1