aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/repro
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-06-20 15:26:37 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-06-22 16:40:45 +0200
commit87bfb99cfe1eef9469625911574b1caab04557d3 (patch)
treed29a283db2df928698c2c39850b1133b11ef55b6 /pkg/repro
parentef9ddfbe36910afb0336375fec3cfed65a74897f (diff)
vm: pass instance to MonitorExecution
It may need it later to try to obtain additional diagnostic from hanged instances.
Diffstat (limited to 'pkg/repro')
-rw-r--r--pkg/repro/repro.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go
index c6106b4bd..2501d1672 100644
--- a/pkg/repro/repro.go
+++ b/pkg/repro/repro.go
@@ -610,7 +610,7 @@ func (ctx *context) testImpl(inst *vm.Instance, command string, duration time.Du
if err != nil {
return false, fmt.Errorf("failed to run command in VM: %v", err)
}
- rep := vm.MonitorExecution(outc, errc, ctx.reporter, true)
+ rep := inst.MonitorExecution(outc, errc, ctx.reporter, true)
if rep == nil {
ctx.reproLog(2, "program did not crash")
return false, nil