Skip to content

Commit

Permalink
Add timestamp to screenshot folder name
Browse files Browse the repository at this point in the history
Let's take it easy on humans
  • Loading branch information
victorges committed Nov 9, 2023
1 parent 315d1c2 commit 105865e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/webrtc-load-tester/roles/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,12 @@ func playerJobSpec(args loadTestArguments, region string, viewers int, playbackI
"-duration", args.TestDuration.String(),
}
if args.Playback.BaseScreenshotFolderOS != nil {
testTime := time.Now().UTC().Format(time.RFC3339)
ssFolder := args.Playback.BaseScreenshotFolderOS.JoinPath(
testTime+"-"+args.TestID,
region)
jobArgs = append(jobArgs,
"-screenshot-folder-os", args.Playback.BaseScreenshotFolderOS.JoinPath(args.TestID, region).String(),
"-screenshot-folder-os", ssFolder.String(),
"-screenshot-period", args.Playback.ScreenshotPeriod.String(),
)
}
Expand Down

0 comments on commit 105865e

Please sign in to comment.