aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance/instance.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-02-13 15:46:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-02-13 15:58:42 +0100
commit0a49c954ffad8e4a8c64dd8ff730b6ede38003d8 (patch)
tree1e3bd22a961c3d192815a2df99a097fea78956e2 /pkg/instance/instance.go
parent0f51729bc4b8b7bdf4767eb88d2c124183639dde (diff)
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.
Diffstat (limited to 'pkg/instance/instance.go')
-rw-r--r--pkg/instance/instance.go2
1 files changed, 1 insertions, 1 deletions
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)