From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 80D78A05D3 for ; Tue, 23 Apr 2019 01:45:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 679CB1B4A4; Tue, 23 Apr 2019 01:45:22 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 106EC4C93 for ; Tue, 23 Apr 2019 01:45:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Apr 2019 16:45:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,383,1549958400"; d="scan'208";a="163895802" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga002.fm.intel.com with ESMTP; 22 Apr 2019 16:45:19 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 22 Apr 2019 16:45:19 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 22 Apr 2019 16:45:19 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.139]) with mapi id 14.03.0415.000; Tue, 23 Apr 2019 07:45:17 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] test/unit_test_eal: bind ports before verifying result Thread-Index: AQHU9mws5v6llK1SBEauI0XmNiNdM6ZI3fvw Date: Mon, 22 Apr 2019 23:45:16 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA64F07@SHSMSX101.ccr.corp.intel.com> References: <1555649998-13234-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1555649998-13234-1-git-send-email-wenjiex.a.li@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGFjNjg4YzctZjkwYS00OTkyLWE2MTQtOWFhMTQ4MzBiYTJhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiU0JDMkllSXE3cSs0bXcwMFNyeVwvNlhldW9HWlNYWGF4STJqbkxuXC95ZVowVHNES0Iyb0RiOCsyZzMrbVg3MXdhIn0= 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 V1] test/unit_test_eal: bind ports before verifying result 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li > Sent: Thursday, April 18, 2019 10:00 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V1] test/unit_test_eal: bind ports before verifying > result >=20 > Should bind the ports before verifying result; otherwise, if the case fai= led, > the ports are still unbound, it will affect the later tests. >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_unit_tests_eal.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_unit_tests_eal.py > b/tests/TestSuite_unit_tests_eal.py > index 2249113..07d788f 100644 > --- a/tests/TestSuite_unit_tests_eal.py > +++ b/tests/TestSuite_unit_tests_eal.py > @@ -321,8 +321,8 @@ class TestUnitTestsEal(TestCase): > # on FreeBSD need more time than other OS > out =3D self.dut.send_expect("eal_flags_autotest", "RTE>>", 600) > self.dut.send_expect("quit", "# ") > - self.verify("Test OK" in out, "Test failed") > self.dut.bind_interfaces_linux(driver=3Dself.drivername) > + self.verify("Test OK" in out, "Test failed") >=20 > def test_alarm(self): > """ > -- > 2.17.2