Skip to content

Commit

Permalink
syz-manager: respect repro config when connected to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
dvyukov committed Jul 3, 2024
1 parent 409d975 commit 780d1bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syz-manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ func (mgr *Manager) saveCrash(crash *Crash) bool {
} else {
// Don't store the crash locally, if we've successfully
// uploaded it to the dashboard. These will just eat disk space.
return resp.NeedRepro
return mgr.cfg.Reproduce && resp.NeedRepro
}
}

Expand Down Expand Up @@ -1103,6 +1103,9 @@ func (mgr *Manager) needLocalRepro(crash *Crash) bool {
}

func (mgr *Manager) needRepro(crash *Crash) bool {
if !mgr.cfg.Reproduce {
return false
}
if crash.fromHub || crash.fromDashboard {
return true
}
Expand Down

0 comments on commit 780d1bc

Please sign in to comment.