From 0bb1b69217c743116ff6f53eb40db8fe973659c0 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 20 Aug 2012 10:30:05 -0700 Subject: [PATCH] ofproto-dpif: Kill off test-netflow daemon if test fails. Signed-off-by: Ben Pfaff --- tests/ofproto-dpif.at | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 1e5856f2..cc5d770b 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -949,6 +949,7 @@ OVS_VSWITCHD_START( add-id-to-interface=false], [<0> ]) +ON_EXIT([kill `cat test-netflow.pid`]) AT_CHECK([test-netflow --detach --no-chdir --pidfile $NETFLOW_PORT:127.0.0.1 > netflow.log]) AT_CAPTURE_FILE([netflow.log]) @@ -993,6 +994,7 @@ OVS_VSWITCHD_START( add-id-to-interface=false], [<0> ]) +ON_EXIT([kill `test-netflow.pid`]) AT_CHECK([test-netflow --detach --no-chdir --pidfile $NETFLOW_PORT:127.0.0.1 > netflow.log])AT_CAPTURE_FILE([netflow.log]) AT_CHECK([ovs-appctl time/stop]) -- 2.30.2