mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Only attempt to find pid with local daemon
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
3a081f53c1
commit
014cecda46
1 changed files with 4 additions and 1 deletions
|
@ -79,6 +79,9 @@ type DockerSuite struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) OnTimeout(c *check.C) {
|
func (s *DockerSuite) OnTimeout(c *check.C) {
|
||||||
|
if !testEnv.IsLocalDaemon() {
|
||||||
|
return
|
||||||
|
}
|
||||||
path := filepath.Join(os.Getenv("DEST"), "docker.pid")
|
path := filepath.Join(os.Getenv("DEST"), "docker.pid")
|
||||||
b, err := ioutil.ReadFile(path)
|
b, err := ioutil.ReadFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -91,7 +94,7 @@ func (s *DockerSuite) OnTimeout(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
daemonPid := int(rawPid)
|
daemonPid := int(rawPid)
|
||||||
if daemonPid > 0 && testEnv.IsLocalDaemon() {
|
if daemonPid > 0 {
|
||||||
daemon.SignalDaemonDump(daemonPid)
|
daemon.SignalDaemonDump(daemonPid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue