diff --git a/tests/ovn-nbctl.at b/tests/ovn-nbctl.at index 478a32f5a2..eed2f86925 100644 --- a/tests/ovn-nbctl.at +++ b/tests/ovn-nbctl.at @@ -2618,7 +2618,9 @@ dnl --------------------------------------------------------------------- AT_SETUP([ovn-nbctl - daemon retry connection]) OVN_NBCTL_TEST_START daemon -AT_CHECK([kill `cat ovsdb-server.pid`]) +pid=$(cat ovsdb-server.pid) +AT_CHECK([kill $pid]) +OVS_WAIT_WHILE([kill -0 $pid 2>/dev/null]) AT_CHECK([ovsdb-server --detach --no-chdir --pidfile --log-file --remote=punix:$OVS_RUNDIR/ovnnb_db.sock ovn-nb.db], [0], [], [stderr]) AT_CHECK([ovn-nbctl show], [0], [ignore]) OVN_NBCTL_TEST_STOP "/terminating with signal 15/d"