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 testutil: make testing packages public 2019-09-11 07:47:23 -05:00
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 testutil: make testing packages public 2019-09-11 07:47:23 -05:00
helper.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
helpers.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
stringutils.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
stringutils_test.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00