Skip to content

Commit

Permalink
roachtest: expose cluster create retries in log file names
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
tbg committed Aug 16, 2021
1 parent 0559484 commit 373120f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cmd/roachtest/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,11 @@ func (f *clusterFactory) newCluster(
}

// Logs for creating a new cluster go to a dedicated log file.
logPath := filepath.Join(f.artifactsDir, runnerLogsDir, "cluster-create", c.name+".log")
var retryStr string
if i > 0 {
retryStr = "-retry" + strconv.Itoa(i)
}
logPath := filepath.Join(f.artifactsDir, runnerLogsDir, "cluster-create", c.name+retryStr+".log")
l, err := logger.RootLogger(logPath, teeOpt)
if err != nil {
log.Fatalf(ctx, "%v", err)
Expand Down

0 comments on commit 373120f

Please sign in to comment.