1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 23:04:41 +00:00

try to debug Drone failures - I think its just timing out.

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-02 14:30:13 +10:00
parent 10a4c59385
commit df32dfdc70
3 changed files with 11 additions and 9 deletions

View File

@@ -106,7 +106,8 @@ func (s *QemuSuite) WaitForSSH() error {
if err = cmd.Run(); err == nil {
break
}
time.Sleep(500 * time.Millisecond)
fmt.Printf("s%d", i)
time.Sleep(time.Second)
}
if err != nil {
@@ -126,6 +127,7 @@ func (s *QemuSuite) WaitForSSH() error {
if err = cmd.Run(); err == nil {
return nil
}
fmt.Printf("d%d", i)
time.Sleep(500 * time.Millisecond)
}
@@ -185,7 +187,7 @@ func (s *QemuSuite) LoadInstallerImage(c *C) {
c.Assert(cmd.Run(), IsNil)
}
func (s *QemuSuite) PullAndLoadInstallerImage(c *C, image string) {
func (s *QemuSuite) PullAndLoadImage(c *C, image string) {
cmd := exec.Command("sh", "-c", fmt.Sprintf("docker pull %s", image))
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr