aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-04-10 15:12:24 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-04-11 10:07:50 +0000
commit9d5632407b527943dca5092877fa4a00e534cd98 (patch)
treeba35f836ed7c2635ae72609b00e10c00b5daaf60 /pkg
parent4d9e57eb150fee8d24ff32fb4a8a414c77d246e6 (diff)
pkg/manager: make diff fuzzer artifacts folder configurable
Diffstat (limited to 'pkg')
-rw-r--r--pkg/manager/diff.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/manager/diff.go b/pkg/manager/diff.go
index bcdf0dfcb..93922859b 100644
--- a/pkg/manager/diff.go
+++ b/pkg/manager/diff.go
@@ -37,8 +37,9 @@ import (
)
type DiffFuzzerConfig struct {
- Debug bool
- PatchedOnly chan *UniqueBug
+ Debug bool
+ PatchedOnly chan *UniqueBug
+ ArtifactsDir string // Where to store the artifacts that supplement the logs.
}
type UniqueBug struct {
@@ -73,7 +74,7 @@ func RunDiffFuzzer(ctx context.Context, baseCfg, newCfg *mgrconfig.Config, cfg D
base.source = stream
new.duplicateInto = stream
- store := &DiffFuzzerStore{BasePath: new.cfg.Workdir}
+ store := &DiffFuzzerStore{BasePath: cfg.ArtifactsDir}
diffCtx := &diffContext{
doneRepro: make(chan *ReproResult),
base: base,