Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #289 from lxShaDoWxl/master
Browse files Browse the repository at this point in the history
fix: split video args
  • Loading branch information
vania-pooh authored Feb 19, 2021
2 parents 103d482 + b3c4fb1 commit c0c040e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions selenoid/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,9 +718,11 @@ func (c *DockerConfigurator) Start() error {
cmd = append(cmd, "-conf", "/etc/selenoid/browsers.json")
}
if !contains(cmd, "-video-output-dir") && isVideoRecordingSupported(c.Logger, c.Version) {
cmd = append(cmd, "-video-output-dir", "/opt/selenoid/video/", "-video-recorder-image", videoRecorderImage)
cmd = append(cmd, "-video-output-dir", "/opt/selenoid/video/")
}
if !contains(cmd, "-video-recorder-image") && isVideoRecordingSupported(c.Logger, c.Version) {
cmd = append(cmd, "-video-recorder-image", videoRecorderImage)
}

if !c.DisableLogs && !contains(cmd, "-log-output-dir") && isLogSavingSupported(c.Logger, c.Version) {
cmd = append(cmd, "-log-output-dir", "/opt/selenoid/logs/")
}
Expand Down

0 comments on commit c0c040e

Please sign in to comment.