When running OVSDB cluster tests on Windows not all the ovsdb processes are 
terminated.
Queue up the pids of the started processes for termination when the test stops.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
 tests/ovsdb-idl.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ovsdb-idl.at b/tests/ovsdb-idl.at
index 7c937f742..fd9e973cd 100644
--- a/tests/ovsdb-idl.at
+++ b/tests/ovsdb-idl.at
@@ -27,8 +27,8 @@ ovsdb_cluster_start_idltest () {
    done
    for i in `seq $n`; do
      ovsdb-server -vraft -vconsole:warn --detach --no-chdir --log-file=s$i.log 
--pidfile=s$i.pid --unixctl=s$i --remote=punix:s$i.ovsdb ${2:+--remote=$2} 
s$i.db || return $?
+     on_exit "kill `cat s$i.pid`"
    done
-   on_exit 'kill `cat s*.pid`'
 }
 
 # ovsdb_cluster_leader [REMOTES] [DATABASE]
-- 
2.21.0.windows.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to