mkvtoolnix/tests/test-390timecode_info_on_resync.rb
Moritz Bunkus 08ab38914d kax_file_c: turn resync messages into warnings
Resync issues are something the user should take a look at. Her file is
damaged, after all. In the GUI purely informational messages can get
lost easily, especially when executing multiple jobs.

Therefore resyncs warrant a warning.

Implements #1842.
2016-12-28 15:38:30 +01:00

10 lines
400 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_390timecode_info_on_resync
describe 'mkvmerge / output timecodes on resync'
test 'data/mkv/resync-after-broken.mkv' do
output = merge('data/mkv/resync-after-broken.mkv', :args => '--ui-language en_US', :exit_code => :warning)[0].join('')
[/last.*timecode.*before.*error/, /first.*cluster.*timecode.*resync/].collect { |re| re.match(output) ? 'ok' : 'BAD' }.join('+')
end