summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2015-02-05 15:31:09 -0800
committerAndy Zhou <azhou@nicira.com>2015-02-06 15:28:26 -0800
commit75e7f85974b3e480463e8883946486c11159f7ab (patch)
tree3009df460b55c89f01537a7b42c7e83394b65d12 /tests
parentba204a754795776cff54204027c98e75b6f51d23 (diff)
downloadopenvswitch-75e7f85974b3e480463e8883946486c11159f7ab.tar.gz
test: add name space removal on test failure
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 <azhou@nicira.com> Signed-off-by: Joe Stringer <joestringer@nicira.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kmod-traffic.at1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kmod-traffic.at b/tests/kmod-traffic.at
index 34e50625d..ddb2cb254 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")