Commit cc729b82 authored by anonym's avatar anonym
Browse files

Allow '+' and ':' in video capture filenames.

This makes timestamps and timezone info easier to read.
parent 4546a8f6
......@@ -114,7 +114,7 @@ Before('@product') do |scenario|
if $config["CAPTURE"]
video_name = "capture-" + "#{scenario.name}-#{TIME_AT_START}.mkv"
# Sanitize the filename from unix-hostile filename characters
bad_filename_chars = Regexp.new("[^A-Za-z0-9_\\-.,]")
bad_filename_chars = Regexp.new("[^A-Za-z0-9_\\-.,+:]")
video_name.gsub!(bad_filename_chars, '_')
@video_path = "#{$config['TMPDIR']}/#{video_name}"
capture = IO.popen(['avconv',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment