diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-12-12 13:16:11 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-12-12 12:30:52 +0000 |
| commit | 530e80f8ee7c0e39b3e98ed0839a557af2d6192e (patch) | |
| tree | 706736f098566512006439fac96e870ecfa623f3 /syz-ci/manager.go | |
| parent | 1b70f4d9b27d13db53fd31d516a5a4bdcedf1210 (diff) | |
syz-ci: rename bench file on all syz-manager restarts
ManagerCmd transparently restarts the instance in case of crashes, so we
should better be cleaning up the bench file within its loop, rather than
in manager.go.
Diffstat (limited to 'syz-ci/manager.go')
| -rw-r--r-- | syz-ci/manager.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/syz-ci/manager.go b/syz-ci/manager.go index 83d174872..784527023 100644 --- a/syz-ci/manager.go +++ b/syz-ci/manager.go @@ -472,13 +472,12 @@ func (mgr *Manager) restartManager() { bin := filepath.FromSlash("syzkaller/current/bin/syz-manager") logFile := filepath.Join(mgr.currentDir, "manager.log") benchFile := filepath.Join(mgr.currentDir, benchFileName) - os.Remove(benchFile) // or else syz-manager will complain args := []string{"-config", cfgFile, "-vv", "1", "-bench", benchFile} if mgr.debug { args = append(args, "-debug") } - mgr.cmd = NewManagerCmd(mgr.name, logFile, mgr.Errorf, bin, args...) + mgr.cmd = NewManagerCmd(mgr.name, logFile, benchFile, mgr.Errorf, bin, args...) mgr.lastRestarted = time.Now() } |
