[lxc-devel] [lxc/lxc] b7aa56: tests: Wait 5s for init to respond in lxc-test-aut...

GitHub noreply at github.com
Tue Jun 10 20:13:16 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: b7aa56b85ca96f321ef6aadb60a28f8c16bec44d
      https://github.com/lxc/lxc/commit/b7aa56b85ca96f321ef6aadb60a28f8c16bec44d
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M src/tests/lxc-test-autostart

  Log Message:
  -----------
  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 at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


  Commit: b38b62a6d45f1ca0e4e68b3fb9d5e4d8b3d6b7e6
      https://github.com/lxc/lxc/commit/b38b62a6d45f1ca0e4e68b3fb9d5e4d8b3d6b7e6
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M src/lxc/cgfs.c

  Log Message:
  -----------
  cgfs: Log the whole cgroup path too

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/1c1c70514f20...b38b62a6d45f


More information about the lxc-devel mailing list