diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-03-14 09:59:43 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-03-17 18:06:44 +0100 |
| commit | c298c983028502f90d21b445c2497e46f558c5bb (patch) | |
| tree | b09c4e2dcec1928ce314146cfac219d747cf2ae7 /vm/gce/gce.go | |
| parent | dc89691385e8105f1c9fb3d30297470562aca3c1 (diff) | |
vm/qemu: detect boot errors faster
Currently we try to ssh into the machine for 10 minutes
even if it crashed right away. Make qemu exit on kernel panic
and stop ssh'ing when qemu exits.
Handling bad kernels fast is actually important for bisection.
Update #501
Diffstat (limited to 'vm/gce/gce.go')
| -rw-r--r-- | vm/gce/gce.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 3e18cf8f4..a17ef8997 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -164,7 +164,7 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { } log.Logf(0, "wait instance to boot: %v (%v)", name, ip) if err := vmimpl.WaitForSSH(pool.env.Debug, 5*time.Minute, ip, - sshKey, sshUser, pool.env.OS, 22); err != nil { + sshKey, sshUser, pool.env.OS, 22, nil); err != nil { output, outputErr := pool.getSerialPortOutput(name, gceKey) if outputErr != nil { output = []byte(fmt.Sprintf("failed to get boot output: %v", outputErr)) |
