Signed-off-by: Daniel Nephin <dnephin@docker.com>
| ... | ... |
@@ -79,6 +79,9 @@ type DockerSuite struct {
|
| 79 | 79 |
} |
| 80 | 80 |
|
| 81 | 81 |
func (s *DockerSuite) OnTimeout(c *check.C) {
|
| 82 |
+ if !testEnv.IsLocalDaemon() {
|
|
| 83 |
+ return |
|
| 84 |
+ } |
|
| 82 | 85 |
path := filepath.Join(os.Getenv("DEST"), "docker.pid")
|
| 83 | 86 |
b, err := ioutil.ReadFile(path) |
| 84 | 87 |
if err != nil {
|
| ... | ... |
@@ -91,7 +94,7 @@ func (s *DockerSuite) OnTimeout(c *check.C) {
|
| 91 | 91 |
} |
| 92 | 92 |
|
| 93 | 93 |
daemonPid := int(rawPid) |
| 94 |
- if daemonPid > 0 && testEnv.IsLocalDaemon() {
|
|
| 94 |
+ if daemonPid > 0 {
|
|
| 95 | 95 |
daemon.SignalDaemonDump(daemonPid) |
| 96 | 96 |
} |
| 97 | 97 |
} |