test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH]test_ping: remove tester ip after finish test
@ 2015-11-13  6:40 Lijuan Tu
  2015-11-13  9:14 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2015-11-13  6:40 UTC (permalink / raw)
  To: dts

From: lijuan tu <lijuanx.a.tu@intel.com>

testers have the same IP on the one machine will cause ip conflict

Signed-off-by: lijuan tu <lijuanx.a.tu@intel.com>
---
 tests/TestSuite_kni.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
index 10e922f..69a20fe 100644
--- a/tests/TestSuite_kni.py
+++ b/tests/TestSuite_kni.py
@@ -594,6 +594,9 @@ class TestKni(TestCase):
                                        (virtual_interface, ''.join(ipv6list)), "# ", 10)
             self.verify(
                 "0 received, 100% packet loss" in out, "ping6 not supported")
+            # remove ip from tester
+            self.tester.send_expect(
+                 "ip addr del 192.168.%d.2 dev %s" % (port, tx_interface), "# ")
           
         for port in self.config['ports']:
             tx_port = self.tester.get_local_port(port)
-- 
2.1.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH]test_ping: remove tester ip after finish test
  2015-11-13  6:40 [dts] [PATCH]test_ping: remove tester ip after finish test Lijuan Tu
@ 2015-11-13  9:14 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-11-13  9:14 UTC (permalink / raw)
  To: Lijuan Tu, dts

Applied. Thanks.

On 11/13/2015 02:40 PM, Lijuan Tu wrote:
> From: lijuan tu <lijuanx.a.tu@intel.com>
>
> testers have the same IP on the one machine will cause ip conflict
>
> Signed-off-by: lijuan tu <lijuanx.a.tu@intel.com>
> ---
>   tests/TestSuite_kni.py | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
> index 10e922f..69a20fe 100644
> --- a/tests/TestSuite_kni.py
> +++ b/tests/TestSuite_kni.py
> @@ -594,6 +594,9 @@ class TestKni(TestCase):
>                                          (virtual_interface, ''.join(ipv6list)), "# ", 10)
>               self.verify(
>                   "0 received, 100% packet loss" in out, "ping6 not supported")
> +            # remove ip from tester
> +            self.tester.send_expect(
> +                 "ip addr del 192.168.%d.2 dev %s" % (port, tx_interface), "# ")
>             
>           for port in self.config['ports']:
>               tx_port = self.tester.get_local_port(port)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-13  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13  6:40 [dts] [PATCH]test_ping: remove tester ip after finish test Lijuan Tu
2015-11-13  9:14 ` Liu, Yong

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).