Commit 63c03506 authored by Sebastien Gougeaud's avatar Sebastien Gougeaud Committed by Thomas Leibovici
Browse files

tests: wait phobosd termination before continuing tests

This modification ensures that the daemon is stopped before doing
anything else.

In the 'bad requests' test, we check if the daemon is running or not by
'ps' its PID. If we do not wait its closure, it may still exists,
cleaning its stuff before exiting. Thus, we consider it as existing,
which is in this case a wrong assumption.

Change-Id: I432b4835ab2109ef09fdc06efe43271fc58ff01b
Signed-off-by: default avatarSebastien Gougeaud <>

Reviewed-by: Linter
Tested-by: default avatarJenkins s8open_nr <>
Reviewed-by: default avatarQuentin Bouget <>
Reviewed-by: default avatarThomas Leibovici <>
parent 870af64a
...@@ -15,4 +15,7 @@ function invoke_daemon() ...@@ -15,4 +15,7 @@ function invoke_daemon()
function waive_daemon() function waive_daemon()
{ {
kill $PID_DAEMON &>/dev/null || echo "Daemon was not running" kill $PID_DAEMON &>/dev/null || echo "Daemon was not running"
# wait would not work here because PID_DAEMON is not an actual child
# of this shell (created by phobosd in invoke_daemon)
tail --pid=$PID_DAEMON -f /dev/null
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment