diff options
| author | Space Meyer <spm@google.com> | 2023-01-09 13:51:24 +0100 |
|---|---|---|
| committer | Space Meyer <git@the-space.agency> | 2023-01-09 14:25:36 +0100 |
| commit | 48bc529a18de54dddab161d995fc3abd85a670a8 (patch) | |
| tree | f6e8c2b6483271922d388aa7e53b90ae9ae4fe9c /pkg/bisect/bisect_test.go | |
| parent | df3838a1b408f22e5df7cd986138d6ec5768369d (diff) | |
pkg/instance: move BuildKernel() args to struct
Diffstat (limited to 'pkg/bisect/bisect_test.go')
| -rw-r--r-- | pkg/bisect/bisect_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go index 79bb70400..2d613759b 100644 --- a/pkg/bisect/bisect_test.go +++ b/pkg/bisect/bisect_test.go @@ -32,16 +32,15 @@ func (env *testEnv) BuildSyzkaller(repo, commit string) (string, error) { return "", nil } -func (env *testEnv) BuildKernel(compilerBin, linker, cCache, userspaceDir, cmdlineFile, sysctlFile string, - kernelConfig []byte) (string, build.ImageDetails, error) { +func (env *testEnv) BuildKernel(buildCfg *instance.BuildKernelConfig) (string, build.ImageDetails, error) { commit := env.headCommit() - configHash := hash.String(kernelConfig) + configHash := hash.String(buildCfg.KernelConfig) details := build.ImageDetails{} details.Signature = fmt.Sprintf("%v-%v", commit, configHash) if commit >= env.test.sameBinaryStart && commit <= env.test.sameBinaryEnd { details.Signature = "same-sign-" + configHash } - env.config = string(kernelConfig) + env.config = string(buildCfg.KernelConfig) if env.config == "baseline-fails" { return "", details, fmt.Errorf("failure") } |
