ofproto-dpif: Kill off test-netflow daemon if test fails.
[openvswitch] / tests / ovs-monitor-ipsec.at
index e9d6389298e47b57b07fe8de79dcfefc8a106845..e66c943d7226db324d68de1b3b7c1ada2fd27ada 100644 (file)
@@ -4,10 +4,11 @@ AT_SETUP([ovs-monitor-ipsec])
 AT_SKIP_IF([test $HAVE_PYTHON = no])
 
 OVS_RUNDIR=`pwd`; export OVS_RUNDIR
+OVS_DBDIR=`pwd`; export OVS_DBDIR
 OVS_PKGDATADIR=`pwd`; export OVS_PKGDATADIR
 cp "$top_srcdir/vswitchd/vswitch.ovsschema" .
 
-trap 'kill `cat pid ovs-monitor-ipsec.pid`' 0
+ON_EXIT([kill `cat pid ovs-monitor-ipsec.pid`])
 
 mkdir etc etc/init.d etc/racoon etc/racoon/certs
 mkdir usr usr/sbin