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 46882A00E6 for ; Fri, 19 Apr 2019 07:03:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0E19D1B213; Fri, 19 Apr 2019 07:03:31 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9382C14E8 for ; Fri, 19 Apr 2019 07:03:28 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2019 22:03:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,368,1549958400"; d="scan'208";a="152125365" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 18 Apr 2019 22:03:26 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 22:03:26 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 22:03:26 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.93]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.25]) with mapi id 14.03.0415.000; Fri, 19 Apr 2019 13:03:24 +0800 From: "Li, WenjieX A" To: "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts][PATCH V1] test/unit_test_eal: bind ports before verifying result Thread-Index: AQHU9mwkwzZH0fdobkWVx7W5QvFKz6ZC7VpQ Date: Fri, 19 Apr 2019 05:03:23 +0000 Message-ID: <8688172CD5C0B74590FAE19D9579F94B536A9454@SHSMSX103.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: 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" Tested-by: Li, WenjieX A > -----Original Message----- > From: Li, WenjieX A > Sent: Friday, April 19, 2019 1: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_tes= ts_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