From 0a49c954ffad8e4a8c64dd8ff730b6ede38003d8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Feb 2019 15:46:50 +0100 Subject: pkg/instance: test coverage during instance testing Currently we always pass cover=false during instance testing and as the result covereage is not tested. This can result in broken images. Pass the actual value of coverage for testing. --- pkg/instance/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/instance/instance.go') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 64d135429..d5313f417 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -264,7 +264,7 @@ func (inst *inst) testInstance() error { } cmd := FuzzerCmd(fuzzerBin, executorBin, "test", inst.cfg.TargetOS, inst.cfg.TargetArch, fwdAddr, - inst.cfg.Sandbox, 0, 0, false, false, true, false) + inst.cfg.Sandbox, 0, 0, inst.cfg.Cover, false, true, false) outc, errc, err := inst.vm.Run(10*time.Minute, nil, cmd) if err != nil { return fmt.Errorf("failed to run binary in VM: %v", err) -- cgit mrf-deployment