diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-09-28 16:20:12 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-10-04 11:03:59 +0200 |
| commit | 37f7ec75a3672de8b3280d0b59ef2d4c97e5097d (patch) | |
| tree | 9b0925c248dfbb8dc6f78f7f50623fe72e7775b2 /syz-ci | |
| parent | ab1e139258d1e091f58bff6ffbc42b138a3d4cb8 (diff) | |
all: introduce asset storage config to syz-manager
Let users set the asset storage config in the syz-manager config.
When running under syz-ci, pass the asset storage config from the syz-ci.
Create an asset storage instance on the start of syz-manager.
Refactor some of syz-manager code to make it less complex.
Diffstat (limited to 'syz-ci')
| -rw-r--r-- | syz-ci/syz-ci.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/syz-ci/syz-ci.go b/syz-ci/syz-ci.go index 944c0c745..486d66c87 100644 --- a/syz-ci/syz-ci.go +++ b/syz-ci/syz-ci.go @@ -403,6 +403,7 @@ func loadManagerConfig(cfg *Config, mgr *ManagerConfig) error { if (mgr.Jobs.BisectCause || mgr.Jobs.BisectFix) && cfg.BisectBinDir == "" { return fmt.Errorf("manager %v: enabled bisection but no bisect_bin_dir", mgr.Name) } + managercfg.AssetStorage = cfg.AssetStorage mgr.managercfg = managercfg managercfg.Syzkaller = filepath.FromSlash("syzkaller/current") if managercfg.HTTP == "" { |
