aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-11-29 09:57:18 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-11-30 13:33:18 +0100
commita142e60d5cf11dc798e4909c97803d75add83a11 (patch)
tree498344a05a38e63fee99f7d2a7485c6823129a24 /pkg/bisect
parent229f64ce5eb21cc7b95a5642fbb6b12acf1f4cfc (diff)
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.
Diffstat (limited to 'pkg/bisect')
-rw-r--r--pkg/bisect/bisect_test.go10
1 files changed, 6 insertions, 4 deletions
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,