aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-08-01 16:01:31 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-08-01 18:25:18 +0200
commit75f1e83f8b75cb220751ff40409c948a0f2cf963 (patch)
treea706d9adb6fa23afce9987b99eee33a28d243d2e /vm/gce
parent0b4392111b2785bac5b780848a5a88cc87bfd419 (diff)
vm/gce: another attempt to fix trimmed console output
We still see trimmed reports even with the "serialport" grep. Add a 5 second sleep in an attempt to fix it.
Diffstat (limited to 'vm/gce')
-rw-r--r--vm/gce/gce.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go
index 34df2abce..e9d1daa90 100644
--- a/vm/gce/gce.go
+++ b/vm/gce/gce.go
@@ -243,6 +243,8 @@ func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command strin
case out := <-merger.Output:
output = append(output, out...)
if bytes.Contains(output, []byte("serialport")) {
+ // Just to make sure (otherwise we still see trimmed reports).
+ time.Sleep(5 * time.Second)
break loop
}
case <-timeout.C: