test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhu, ShuaiX" <shuaix.zhu@intel.com>
To: "Li, WenjieX A" <wenjiex.a.li@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Li, WenjieX A" <wenjiex.a.li@intel.com>,
	"Zhu, ShuaiX" <shuaix.zhu@intel.com>
Subject: Re: [dts] [PATCH V1] tests/dynamic_config and tx_preparation:ensure	port is up before send pkt
Date: Tue, 29 Oct 2019 09:28:16 +0000	[thread overview]
Message-ID: <4DC48DF9BDA3E54A836D2D3C057DEC6F0BBA56F8@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1572373001-15731-1-git-send-email-wenjiex.a.li@intel.com>

[-- Attachment #1: Type: text/plain, Size: 2112 bytes --]

Tested-by: Zhu, ShuaiX <shuaix.zhu@intel.com>

> -----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 <wenjiex.a.li@intel.com>
> Subject: [dts] [PATCH V1] tests/dynamic_config and tx_preparation:ensure port
> is up before send pkt
> 
> ensure port is up before send packets.
> 
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
>  tests/TestSuite_dynamic_config.py | 5 +++++
> tests/TestSuite_tx_preparation.py | 4 ++++
>  2 files changed, 9 insertions(+)
> 
> 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
> 
>  from test_case import TestCase
> +from pmd_output import PmdOutput
> +
> 
>  #
>  #
> @@ -100,6 +102,9 @@ class TestDynamicConfig(TestCase):
>          """
>          Send 1 packet to portid
>          """
> +        self.pmd_output = PmdOutput(self.dut)
> +        res = self.pmd_output.wait_link_status_up("all", 30)
> +        self.verify(res is True, "there have port link is down")
> 
>          itf = self.tester.get_interface(self.tester.get_local_port(portid))
> 
> 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 = PmdOutput(self.dut)
> +        res = self.pmd_output.wait_link_status_up("all", 30)
> +        self.verify(res is True, "there have port link is down")
> +
>          LrgLength = random.randint(Normal_mtu, Max_mtu-100)
>          pkts = {'IPv4/cksum TCP': 'Ether(dst="%s")/IP()/TCP(flags=0x10)\
>                      /Raw(RandString(50))' % self.dmac,
> --
> 2.17.1


[-- Attachment #2: TestTX_preparation.log --]
[-- Type: application/octet-stream, Size: 108881 bytes --]

[-- Attachment #3: TestDynamicConfig.log --]
[-- Type: application/octet-stream, Size: 82017 bytes --]

  reply	other threads:[~2019-10-29  9:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-29 18:16 Wenjie Li
2019-10-29  9:28 ` Zhu, ShuaiX [this message]
2019-11-22  3:15 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC48DF9BDA3E54A836D2D3C057DEC6F0BBA56F8@SHSMSX103.ccr.corp.intel.com \
    --to=shuaix.zhu@intel.com \
    --cc=dts@dpdk.org \
    --cc=wenjiex.a.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).