Skip to content

Commit

Permalink
tests: fixed "ovn-nbctl - daemon retry connection"
Browse files Browse the repository at this point in the history
"kill pid" does not wait for process to be terminated.
Wait for ovsdb-server termination before restarting it.

Signed-off-by: Xavier Simonart <[email protected]>
Signed-off-by: Dumitru Ceara <[email protected]>
(cherry picked from commit 8b65cbd)
  • Loading branch information
simonartxavier authored and dceara committed Nov 17, 2023
1 parent a9d0b45 commit a8ba0da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ovn-nbctl.at
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a8ba0da

Please sign in to comment.