mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Add option to filter mkvinfo's output for test cases
This commit is contained in:
parent
923cda22ff
commit
a9be17c8a6
@ -123,6 +123,10 @@ class SimpleTest
|
||||
:name => full_command_line,
|
||||
:block => lambda {
|
||||
sys "../src/mkvmerge #{full_command_line} > #{tmp}", :exit_code => options[:exit_code]
|
||||
if options[:filter]
|
||||
text = options[:filter].call(IO.readlines(tmp).join(''))
|
||||
File.open(tmp, 'w') { |file| file.puts text }
|
||||
end
|
||||
options[:keep_tmp] ? hash_file(tmp) : hash_tmp
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user