From b36c307e4d7a49e7b738ab63576854eb43855e12 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 24 May 2023 16:12:36 +0200 Subject: pkg/repro: factor out an interface Interact with a syz-execprog instance via an additional interface. This will simplify testing. --- pkg/instance/execprog.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/instance/execprog.go') diff --git a/pkg/instance/execprog.go b/pkg/instance/execprog.go index 3c54342ac..f325dc040 100644 --- a/pkg/instance/execprog.go +++ b/pkg/instance/execprog.go @@ -183,3 +183,7 @@ func (inst *ExecProgInstance) RunSyzProg(syzProg []byte, duration time.Duration, defer os.Remove(progFile) return inst.RunSyzProgFile(progFile, duration, opts) } + +func (inst *ExecProgInstance) Close() { + inst.VMInstance.Close() +} -- cgit mrf-deployment