]> git.ipfire.org Git - thirdparty/lxc.git/commit
tests: Wait 5s for init to respond in lxc-test-autostart
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 9 Jun 2014 21:13:56 +0000 (17:13 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Jun 2014 20:12:39 +0000 (16:12 -0400)
commitb7aa56b85ca96f321ef6aadb60a28f8c16bec44d
tree7a317f969c6a582868c9e5b3a888f79b42e74141
parent1c1c70514f20fed5137fd6028810a9f7be9d1eba
tests: Wait 5s for init to respond in lxc-test-autostart

lxc-test-autostart occasionaly fails at the restart test in the CI
environment. Looking at the current test case, the most obvious race
there is if lxc-wait exists succesfuly immediately after LXC marked the
container RUNNING (init spawned) but before init had a chance to setup
the signal handlers.

To avoid this potential race period, let's add a 5s delay between the
tests to give a chance for init to finish starting up.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/tests/lxc-test-autostart