projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff9a49
)
Fix: wait for sessiond to stop in tests
author
David Goulet
<dgoulet@efficios.com>
Tue, 10 Apr 2012 17:42:46 +0000
(13:42 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Tue, 10 Apr 2012 17:49:18 +0000
(13:49 -0400)
Before returning from stop_sessiond bash function, we wait that the
sessiond daemon completely stopped. If it hungs up at that point, the
kill did not work and investigation can begin.
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/utils.sh
patch
|
blob
|
blame
|
history
diff --git
a/tests/utils.sh
b/tests/utils.sh
index 2d8b46a834b72f6e393cdb89406602f098ff5ad2..0f4affd99145165bb21006416cc7aeb8a5367af9 100644
(file)
--- a/
tests/utils.sh
+++ b/
tests/utils.sh
@@
-101,6
+101,11
@@
function stop_sessiond ()
echo -e "\e[1;31mFAILED\e[0m"
return 1
else
+ out=1
+ while [ -n "$out" ]; do
+ out=$(pidof lt-$SESSIOND_BIN)
+ sleep 0.5
+ done
echo -e "\e[1;32mOK\e[0m"
fi
}
This page took
0.025874 seconds
and
4
git commands to generate.