Improves test failure handling. Remove name spaces that are no longer
needed so they to linger around before the next test starts.

Signed-off-by: Andy Zhou <az...@nicira.com>
---
 tests/kmod-traffic.at | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/kmod-traffic.at b/tests/kmod-traffic.at
index 34e5062..ddb2cb2 100644
--- a/tests/kmod-traffic.at
+++ b/tests/kmod-traffic.at
@@ -5,6 +5,7 @@ OVS_KMOD_VSWITCHD_START(
    [set-fail-mode br0 standalone -- ])
 
 ADD_NAMESPACES(at_ns0, at_ns1)
+ON_EXIT(DEL_NAMESPACES(at_ns0, at_ns1))
 
 ADD_VETH(p0, at_ns0, br0, "10.1.1.1/24")
 ADD_VETH(p1, at_ns1, br0, "10.1.1.2/24")
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to