Skip to content

Commit

Permalink
Wait when restarting ocid during tests
Browse files Browse the repository at this point in the history
When we restart ocid as part of a test, wait for the daemon to exit when
we send it a SIGTERM, just as we do when we try to stop it for good.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
  • Loading branch information
nalind committed Feb 3, 2017
1 parent d0464b1 commit 5a89d53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ function stop_ocid() {
function restart_ocid() {
if [ "$OCID_PID" != "" ]; then
kill "$OCID_PID" >/dev/null 2>&1
wait "$OCID_PID"
start_ocid
else
echo "you must start ocid first"
Expand Down

0 comments on commit 5a89d53

Please sign in to comment.