From a142e60d5cf11dc798e4909c97803d75add83a11 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 29 Nov 2020 09:57:18 +0100 Subject: pkg/mgrconfig: move derived fields into separate struct Users should not be concerned with the internal derived fields. Move all derived fields into a separate struct before adding more. This leaves config.go as a better documentation for end users. --- pkg/bisect/bisect_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pkg/bisect') diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go index 7d0c89c75..26e157aaa 100644 --- a/pkg/bisect/bisect_test.go +++ b/pkg/bisect/bisect_test.go @@ -127,10 +127,12 @@ func runBisection(t *testing.T, baseDir string, test BisectionTest) (*Result, er Fix: test.fix, Trace: trace, Manager: mgrconfig.Config{ - TargetOS: targets.TestOS, - TargetVMArch: targets.TestArch64, - Type: "qemu", - KernelSrc: baseDir, + Derived: mgrconfig.Derived{ + TargetOS: targets.TestOS, + TargetVMArch: targets.TestArch64, + }, + Type: "qemu", + KernelSrc: baseDir, }, Kernel: KernelConfig{ Repo: baseDir, -- cgit mrf-deployment