From 75f1e83f8b75cb220751ff40409c948a0f2cf963 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 1 Aug 2017 16:01:31 +0200 Subject: 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. --- vm/gce/gce.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm/gce') 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: -- cgit mrf-deployment