From cbdf514ebdff5b19bc93cdfcc81598587627330e Mon Sep 17 00:00:00 2001 From: Jouni Hogander Date: Tue, 10 Nov 2020 15:01:26 +0200 Subject: pkg/kconfig: store minimization results Store config options identified using DebugTracer. Also change bisection and configuration minimization code to use new DebugTracer. --- pkg/bisect/bisect_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkg/bisect/bisect_test.go') diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go index db4409a5c..e71903c98 100644 --- a/pkg/bisect/bisect_test.go +++ b/pkg/bisect/bisect_test.go @@ -4,13 +4,13 @@ package bisect import ( - "bytes" "fmt" "io/ioutil" "os" "strconv" "testing" + "github.com/google/syzkaller/pkg/debugtracer" "github.com/google/syzkaller/pkg/hash" "github.com/google/syzkaller/pkg/instance" "github.com/google/syzkaller/pkg/mgrconfig" @@ -122,10 +122,9 @@ func runBisection(t *testing.T, baseDir string, test BisectionTest) (*Result, er if err != nil { t.Fatal(err) } - trace := new(bytes.Buffer) cfg := &Config{ Fix: test.fix, - Trace: trace, + Trace: &debugtracer.TestTracer{T: t}, Manager: &mgrconfig.Config{ Derived: mgrconfig.Derived{ TargetOS: targets.TestOS, @@ -147,7 +146,6 @@ func runBisection(t *testing.T, baseDir string, test BisectionTest) (*Result, er test: test, } res, err := runImpl(cfg, r, inst) - t.Log(trace.String()) return res, err } -- cgit mrf-deployment