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 086FBA04F2; Fri, 6 Dec 2019 06:46:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F16131BF96; Fri, 6 Dec 2019 06:46:30 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 2BA651BF92 for ; Fri, 6 Dec 2019 06:46:29 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2019 21:46:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,283,1571727600"; d="log'?scan'208";a="209371210" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga007.fm.intel.com with ESMTP; 05 Dec 2019 21:46:27 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 5 Dec 2019 21:46:27 -0800 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; Thu, 5 Dec 2019 21:46:26 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) 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; Thu, 5 Dec 2019 21:46:26 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.29]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.236]) with mapi id 14.03.0439.000; Fri, 6 Dec 2019 13:46:25 +0800 From: "Li, WenjieX A" To: "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts][PATCH V1] tests/userspace_ethtool: exit the loop in 5s Thread-Index: AQHVq/hq0ZFuj6GkPEG6yIibN7xhFaesmPIQ Date: Fri, 6 Dec 2019 05:46:24 +0000 Message-ID: <8688172CD5C0B74590FAE19D9579F94B53802EA6@SHSMSX103.ccr.corp.intel.com> References: <1575642609-25830-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1575642609-25830-1-git-send-email-wenjiex.a.li@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: multipart/mixed; boundary="_002_8688172CD5C0B74590FAE19D9579F94B53802EA6SHSMSX103ccrcor_" MIME-Version: 1.0 Subject: Re: [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" --_002_8688172CD5C0B74590FAE19D9579F94B53802EA6SHSMSX103ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Tested-by: Li, WenjieX A > -----Original Message----- > From: Li, WenjieX A > Sent: Friday, December 6, 2019 10:30 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts][PATCH V1] tests/userspace_ethtool: exit the loop in 5s >=20 > exit the loop in 5s at most; if the status still not equel to expected_st= atus, return > False and make the case fail. >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_userspace_ethtool.py | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 =3D=3D expected_status: > return True > time.sleep(1) > + retries =3D retries + 1 > return False >=20 > def test_dump_driver_info(self): > -- > 2.17.1 --_002_8688172CD5C0B74590FAE19D9579F94B53802EA6SHSMSX103ccrcor_ Content-Type: application/octet-stream; name="TestUserspaceEthtool.log" Content-Description: TestUserspaceEthtool.log Content-Disposition: attachment; filename="TestUserspaceEthtool.log"; size=6094; creation-date="Fri, 06 Dec 2019 05:45:46 GMT"; modification-date="Fri, 06 Dec 2019 05:45:46 GMT" Content-Transfer-Encoding: base64 MDYvMTIvMjAxOSAxNDoyOTowOCAgICAgICAgICAgICAgICAgICAgICAgICAgICBkdHM6IApURVNU IFNVSVRFIDogVGVzdFVzZXJzcGFjZUV0aHRvb2wKMDYvMTIvMjAxOSAxNDoyOTowOCAgICAgICAg ICAgICAgICAgICAgICAgICAgICBkdHM6IE5JQyA6ICAgICAgICBzYWdldmlsbGUKMDYvMTIvMjAx OSAxNDoyOTowOCAgICAgICAgICAgICAgZHV0LjEwLjIzOC41NC4yMTk6IAowNi8xMi8yMDE5IDE0 OjI5OjA4ICAgICAgICAgICAgICAgICAgICAgICAgIHRlc3RlcjogCjA2LzEyLzIwMTkgMTQ6Mjk6 MDggICAgICAgICAgICAgIGR1dC4xMC4yMzguNTQuMjE5OiBybSAtcmYgLi9hcHAvdGVzdC90ZXN0 X3Jlc291cmNlX2MucmVzLm8KMDYvMTIvMjAxOSAxNDoyOTowOCAgICAgICAgICAgICAgZHV0LjEw LjIzOC41NC4yMTk6IAowNi8xMi8yMDE5IDE0OjI5OjA4ICAgICAgICAgICAgICBkdXQuMTAuMjM4 LjU0LjIxOTogcm0gLXJmIC4vYXBwL3Rlc3QvdGVzdF9yZXNvdXJjZV90YXIucmVzLm8KMDYvMTIv MjAxOSAx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