test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Ma, LihongX" <lihongx.ma@intel.com>
To: "usurekha@marvell.com" <usurekha@marvell.com>,
	"dts@dpdk.org" <dts@dpdk.org>
Cc: "pvukkisala@marvell.com" <pvukkisala@marvell.com>,
	"zzhou@marvell.com" <zzhou@marvell.com>
Subject: Re: [dts] [PATCH] tests/TestSuite_multiple_pthread.py: Updated	test_positive() and teardown() functions.
Date: Tue, 29 Sep 2020 05:07:35 +0000	[thread overview]
Message-ID: <BN8PR11MB37158BA05B1C56AAC1C6551B9E320@BN8PR11MB3715.namprd11.prod.outlook.com> (raw)
In-Reply-To: <1601027214-29537-1-git-send-email-usurekha@marvell.com>


> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of usurekha@marvell.com
> Sent: Friday, September 25, 2020 5:47 PM
> To: dts@dpdk.org
> Cc: pvukkisala@marvell.com; zzhou@marvell.com; usurekha
> <usurekha@marvell.com>
> Subject: [dts] [PATCH] tests/TestSuite_multiple_pthread.py: Updated
> test_positive() and teardown() functions.
> 
> From: usurekha <usurekha@marvell.com>
> 
> Added script to get the available max cpu depends on DUT config.
> Did modifications in teardown() to close the tester scapy sessions properly.
> 
> Signed-off-by: usurekha <usurekha@marvell.com>
> ---
>  tests/TestSuite_multiple_pthread.py | 18 ++++++++++++------
>  1 file changed, 12 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/TestSuite_multiple_pthread.py
> b/tests/TestSuite_multiple_pthread.py
> index 5d4a1f6..2af8196 100644
> --- a/tests/TestSuite_multiple_pthread.py
> +++ b/tests/TestSuite_multiple_pthread.py
> @@ -62,7 +62,7 @@ class TestMultiplePthread(TestCase):
>          """
>          Run before each test case.
>          """
> -        self.send_sessions = []
> +        self.send_sessions = None
> 

If there are multiple ports on dut, it will create multiple session to send the pkg,
So it should create a list to store all the session info on the suite, otherwise maybe some sessions will lost control.


Regards,
Ma,lihong

  reply	other threads:[~2020-09-29  5:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25  9:46 usurekha
2020-09-29  5:07 ` Ma, LihongX [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-25  9:28 usurekha

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=BN8PR11MB37158BA05B1C56AAC1C6551B9E320@BN8PR11MB3715.namprd11.prod.outlook.com \
    --to=lihongx.ma@intel.com \
    --cc=dts@dpdk.org \
    --cc=pvukkisala@marvell.com \
    --cc=usurekha@marvell.com \
    --cc=zzhou@marvell.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).