b843b1ffe3
This patch stores the location of the pidfile, so that we can use the same path that was set to create it. If no pidfile was created, we'll not try to remove it. We're now also ignoring errors when removing the pidfile, as they should not fail the test (especialy if no pidfile was created in the first place, as that could potentially hide the actual failure). This may help with "failures" such as the one below: ``` FAIL: check_test.go:347: DockerSwarmSuite.TearDownTest check_test.go:352: d.Stop(c) /go/src/github.com/docker/docker/internal/test/daemon/daemon.go:414: t.Fatalf("Error while stopping the daemon %s : %v", d.id, err) ... Error: Error while stopping the daemon d1512c423813a : remove /go/src/github.com/docker/docker/bundles/test-integration/DockerSwarmSuite.TestServiceLogs/d1512c423813a/docker.pid: no such file or directory ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
daemon | ||
environment | ||
fakecontext | ||
fakegit | ||
fakestorage | ||
fixtures | ||
registry | ||
request | ||
doc.go | ||
helper.go | ||
helpers.go | ||
stringutils.go | ||
stringutils_test.go |