[dts] [PATCH]test_ping: remove tester ip after finish test

Liu, Yong yong.liu at intel.com
Fri Nov 13 10:14:44 CET 2015


Applied. Thanks.

On 11/13/2015 02:40 PM, Lijuan Tu wrote:
> From: lijuan tu <lijuanx.a.tu at intel.com>
>
> testers have the same IP on the one machine will cause ip conflict
>
> Signed-off-by: lijuan tu <lijuanx.a.tu at 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)



More information about the dts mailing list