From 699923ce737c2cc5727cbd97833eca797510ad1b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Mar 2019 14:36:07 +0100 Subject: pkg/instance: clean up temp file --- pkg/instance/instance.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/instance/instance.go') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 278f7dd31..342668cd3 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -341,6 +341,7 @@ func (inst *inst) testRepro() error { if err != nil { return err } + defer os.Remove(bin) vmBin, err := inst.vm.Copy(bin) if err != nil { return &TestError{Title: fmt.Sprintf("failed to copy test binary to VM: %v", err)} -- cgit mrf-deployment