[dts] [PATCH]test_ping: remove tester ip after finish test
Lijuan Tu
lijuanx.a.tu at intel.com
Fri Nov 13 07:40:12 CET 2015
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)
--
2.1.0
More information about the dts
mailing list