From 5a89d5381d018e89eb1f2fe452666686a3649656 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Fri, 3 Feb 2017 17:18:26 -0500 Subject: [PATCH] Wait when restarting ocid during tests 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 --- test/helpers.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/test/helpers.bash b/test/helpers.bash index c9a97ae3..ddfa86e3 100644 --- a/test/helpers.bash +++ b/test/helpers.bash @@ -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"