aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect/bisect_test.go
diff options
context:
space:
mode:
authorFlorent Revest <revest@chromium.org>2024-10-02 16:02:12 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-10-14 19:43:42 +0000
commit484e362fcff09b8b74162eefd0c3bfd67e829d94 (patch)
tree7db4c1f87a6c37073084a6b806978495297f6d25 /pkg/bisect/bisect_test.go
parent2e5c6a5c1c62461b69c6f50a123885b9910fce04 (diff)
pkg/build: use the build environment in clean() calls
This unifies the build() and clean() interfaces such that if a custom compiler or make binary is provided in the manager or bisection config, they can be taken into account by the clean() interface.
Diffstat (limited to 'pkg/bisect/bisect_test.go')
-rw-r--r--pkg/bisect/bisect_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go
index cb5e51c5b..6731eb235 100644
--- a/pkg/bisect/bisect_test.go
+++ b/pkg/bisect/bisect_test.go
@@ -35,6 +35,10 @@ func (env *testEnv) BuildSyzkaller(repo, commit string) (string, error) {
return "", nil
}
+func (env *testEnv) CleanKernel(buildCfg *instance.BuildKernelConfig) error {
+ return nil
+}
+
func (env *testEnv) BuildKernel(buildCfg *instance.BuildKernelConfig) (string, build.ImageDetails, error) {
commit := env.headCommit()
configHash := hash.String(buildCfg.KernelConfig)