1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/testutil
Sebastiaan van Stijn 1fe7a9552c
testutil/daemon: daemon.Cleanup(): unmount daemon root-dir as part of cleanup
test-daemons remove their docker.pid when stopped, so the `.integration-daemon-stop`
script did not find the mounts for those daemons, and therefore was not unmounting
them.

As a result, cleaning up the bundles directory on consecutive runs of the tests would fail;

    rm: cannot remove 'bundles/test-integration/TestDockerSwarmSuite/TestSwarmInit/d1f188f3f5472/root': Device or resource busy

This patch unmounts the root directory of the daemon as part of the cleanup step.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-10-11 00:34:55 +02:00
..
daemon testutil/daemon: daemon.Cleanup(): unmount daemon root-dir as part of cleanup 2019-10-11 00:34:55 +02:00
environment testutil: use testing.TB instead of assert.TestingT 2019-09-23 14:23:01 +02:00
fakecontext Remove some uses of testutil.HelperT 2019-09-23 14:06:27 +02:00
fakegit Remove some uses of testutil.HelperT 2019-09-23 14:06:27 +02:00
fakestorage Remove some uses of testutil.HelperT 2019-09-23 14:06:27 +02:00
fixtures
registry testutil: use testing.TB instead of assert.TestingT 2019-09-23 14:23:01 +02:00
request testutil: use testing.TB instead of assert.TestingT 2019-09-23 14:23:01 +02:00
doc.go
helper.go
helpers.go
stringutils.go
stringutils_test.go