tests: use "--engage no_variable_data" during identification

This commit is contained in:
Moritz Bunkus 2017-04-15 18:46:43 +02:00
parent a3e5a9b222
commit 243b70a03f

View File

@ -141,7 +141,7 @@ class SimpleTest
@blocks[:tests] << { @blocks[:tests] << {
:name => full_command_line, :name => full_command_line,
:block => lambda { :block => lambda {
sys "../src/mkvmerge #{full_command_line} > #{tmp}", :exit_code => options[:exit_code] sys "../src/mkvmerge #{full_command_line} --engage no_variable_data > #{tmp}", :exit_code => options[:exit_code]
text = IO.readlines(tmp).reject { |line| %r{^\s*"identification_format_version":\s*\d+}.match(line) }.join('') text = IO.readlines(tmp).reject { |line| %r{^\s*"identification_format_version":\s*\d+}.match(line) }.join('')
File.open(tmp, 'w') { |tmp_file| tmp_file.puts text } File.open(tmp, 'w') { |tmp_file| tmp_file.puts text }