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 B845BA04C1; Fri, 22 Nov 2019 04:15:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 75E6D2AA0; Fri, 22 Nov 2019 04:15:48 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BBCE6235 for ; Fri, 22 Nov 2019 04:15:47 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 19:15:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,228,1571727600"; d="scan'208";a="408766327" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 21 Nov 2019 19:15:46 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 19:15:46 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 19:15:46 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.200]) with mapi id 14.03.0439.000; Fri, 22 Nov 2019 11:15:44 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] tests/dynamic_config and tx_preparation:ensure port is up before send pkt Thread-Index: AQHVjjsDbimlZeb49kSN98cfMPjd8aeWqcDw Date: Fri, 22 Nov 2019 03:15:43 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB674DA@SHSMSX101.ccr.corp.intel.com> References: <1572373001-15731-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1572373001-15731-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.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGM0NGM4M2MtMTk1Yy00NzM1LTkyZjAtZjc5ODg5MzY0OGY3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSkFKNlZqNXArOWZoU3JcL2RWeWxUKzhRTnk1d09ybVhVeHNHb0NaK0ZyTitmS1F6VDBXOUVycVUwVmtJMFVld2wifQ== 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] tests/dynamic_config and tx_preparation:ensure port is up before send pkt 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: Wednesday, October 30, 2019 2:17 AM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V1] tests/dynamic_config and tx_preparation:ensure > port is up before send pkt >=20 > ensure port is up before send packets. >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_dynamic_config.py | 5 +++++ > tests/TestSuite_tx_preparation.py | 4 ++++ > 2 files changed, 9 insertions(+) >=20 > diff --git a/tests/TestSuite_dynamic_config.py > b/tests/TestSuite_dynamic_config.py > index 301f5b7..5e55b57 100644 > --- a/tests/TestSuite_dynamic_config.py > +++ b/tests/TestSuite_dynamic_config.py > @@ -40,6 +40,8 @@ import utils > import time >=20 > from test_case import TestCase > +from pmd_output import PmdOutput > + >=20 > # > # > @@ -100,6 +102,9 @@ class TestDynamicConfig(TestCase): > """ > Send 1 packet to portid > """ > + self.pmd_output =3D PmdOutput(self.dut) > + res =3D self.pmd_output.wait_link_status_up("all", 30) > + self.verify(res is True, "there have port link is down") >=20 > itf =3D self.tester.get_interface(self.tester.get_local_port(por= tid)) >=20 > diff --git a/tests/TestSuite_tx_preparation.py > b/tests/TestSuite_tx_preparation.py > index 366a547..215e961 100644 > --- a/tests/TestSuite_tx_preparation.py > +++ b/tests/TestSuite_tx_preparation.py > @@ -116,6 +116,10 @@ class TestTX_preparation(TestCase): > """ > Send packet to portid and output > """ > + self.pmd_output =3D PmdOutput(self.dut) > + res =3D self.pmd_output.wait_link_status_up("all", 30) > + self.verify(res is True, "there have port link is down") > + > LrgLength =3D random.randint(Normal_mtu, Max_mtu-100) > pkts =3D {'IPv4/cksum TCP': 'Ether(dst=3D"%s")/IP()/TCP(flags=3D= 0x10)\ > /Raw(RandString(50))' % self.dmac, > -- > 2.17.1