Files
docker-cli/components/engine/integration-cli
Kir Kolyshkin dd0cbe7272 integration-cli/TestCleanupMounts: fix/improve
`TestCleanupMountsAfterDaemonAndContainerKill` was supposedly written
when the container mounts were visible from the host. Currently they
all live in their own mount namespace and the only visible mount is
the tmpfs one for shareable /dev/shm inside the container (i.e.
/var/lib/docker/containers/<ID>/shm), which will no longer be there
in case of `--default-ipc-mode private` is used, and so the test will
fail. Add a check if any container mounts are visible from the host,
and skip the test if there are none, as there's nothing to check.

`TestCleanupMountsAfterDaemonCrash`: fix in a similar way, keeping
all the other checks it does, and skipping the "mounts gone" check
if there were no mounts visible from the host.

While at it, also fix the tests to use `d.Kill()` in order to not
leave behind a stale `docker.pid` files.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Upstream-commit: f5e01452d2c2a07bab48b4e05306ef9446770c4a
Component: engine
2017-12-28 13:08:41 -08:00
..
2017-08-30 13:13:18 -04:00
2017-08-22 17:15:26 -04:00
2017-09-15 16:01:15 +02:00
2017-08-25 12:07:30 -04:00
2017-10-07 00:10:24 +08:00
2017-07-03 13:13:09 -07:00
2017-09-15 16:01:15 +02:00
2017-09-15 16:01:15 +02:00
2017-09-14 19:27:09 +02:00
2017-08-25 12:07:30 -04:00