Merge pull request #2852 from weaveworks/assert-no-defunct
Assert no defunct process is generated as a postcondition of all tests.
This commit is contained in:
commit
fd0c53b424
1 file changed
+9
@@ -278,7 +278,16 @@ start_suite() {
|
|||||||
whitely echo "$@"
|
whitely echo "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Common postconditions to assert on each host, after each test:
|
||||||
|
assert_common_postconditions() {
|
||||||
|
# Ensure we do not generate any defunct (a.k.a. zombie) process:
|
||||||
|
assert "run_on $1 ps aux | grep -c '[d]efunct'" "0"
|
||||||
|
}
|
||||||
|
|
||||||
end_suite() {
|
end_suite() {
|
||||||
|
for host in $HOSTS; do
|
||||||
|
assert_common_postconditions "$host"
|
||||||
|
done
|
||||||
whitely assert_end
|
whitely assert_end
|
||||||
for host in $HOSTS; do
|
for host in $HOSTS; do
|
||||||
stop_weave_on $host
|
stop_weave_on $host
|
||||||
|
|||||||
Reference in new issue
Block a user