From a7b22031cdbe8555ef6d4a086bd11dbc9feea4fd Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 28 Jun 2024 13:46:53 +0200 Subject: vmimpl: add a delay after an error from the tracked process It usually means a kernel crash, in which case we want to give the kernel some more time to print the whole coverage report to the console. --- vm/vm.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vm/vm.go') diff --git a/vm/vm.go b/vm/vm.go index 6f66f8a37..879fc8feb 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -437,7 +437,7 @@ func (mon *monitor) createReport(defaultError string) *report.Report { } func (mon *monitor) waitForOutput() { - timer := time.NewTimer(waitForOutputTimeout * mon.inst.pool.timeouts.Scale) + timer := time.NewTimer(vmimpl.WaitForOutputTimeout * mon.inst.pool.timeouts.Scale) defer timer.Stop() for { select { @@ -470,6 +470,5 @@ var ( beforeContextDefault = 128 << 10 afterContext = 128 << 10 - tickerPeriod = 10 * time.Second - waitForOutputTimeout = 10 * time.Second + tickerPeriod = 10 * time.Second ) -- cgit mrf-deployment