test suite reviews and discussions
 help / color / Atom feed
From: "Chen, BoX C" <box.c.chen@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1] Add steps to clean environment
Date: Thu, 21 May 2020 09:36:12 +0000
Message-ID: <MN2PR11MB39681387E538F50C70D2731BD9B70@MN2PR11MB3968.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20200521093139.24881-1-box.c.chen@intel.com>

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

Tested-by: Chen, BoX C <box.c.chen@intel.com>

Regards,
Chen Bo

> -----Original Message-----
> From: Chen, BoX C <box.c.chen@intel.com>
> Sent: May 21, 2020 17:32
> To: dts@dpdk.org
> Cc: Chen, BoX C <box.c.chen@intel.com>
> Subject: [dts][PATCH V1] Add steps to clean environment
> 
> If the test result is failed, the IP set previously will be reserved, need del IP
> 
> Signed-off-by: ChenBo <box.c.chen@intel.com>
> ---
>  tests/TestSuite_kni.py | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index
> 2b2281d..d518f3e 100644
> --- a/tests/TestSuite_kni.py
> +++ b/tests/TestSuite_kni.py
> @@ -1210,7 +1210,11 @@ class TestKni(TestCase):
>          """
>          Run after each test case.
>          """
> -        pass
> +        if self._suite_result.test_case == "test_ping":
> +            for port in self.config['ports']:
> +                tx_port = self.tester.get_local_port(port)
> +                tx_interface = self.tester.get_interface(tx_port)
> +                self.tester.send_expect("ip addr flush %s" %
> + tx_interface, "# ")
> 
>      def tear_down_all(self):
>          """
> --
> 2.17.1


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

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-21  9:31 ChenBo
2020-05-21  9:36 ` Chen, BoX C [this message]

Reply instructions:

You may reply publically 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=MN2PR11MB39681387E538F50C70D2731BD9B70@MN2PR11MB3968.namprd11.prod.outlook.com \
    --to=box.c.chen@intel.com \
    --cc=dts@dpdk.org \
    /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

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox