ofproto-dpif: Kill off test-netflow daemon if test fails.
authorBen Pfaff <blp@nicira.com>
Mon, 20 Aug 2012 17:30:05 +0000 (10:30 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 20 Aug 2012 19:28:06 +0000 (12:28 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/ofproto-dpif.at

index 1e5856f219f7192deca96c22d94134fce5438318..cc5d770b6481783b950e18f03073e906f99e6a4b 100644 (file)
@@ -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])