runtime(syntax-tests): Stop generating redundant "*_99.dump" files
- Remove the code handling their generation. - Remove the code written for the shell filetype to clear up the buffer screen before such a file can be generated. - Remove all but "yaml.yaml_99.dump" of such generated files (since there is no published "input/yaml.yaml.yaml", let its maintainer regenerate screen dump files and remove redundant ones). The new algorithm turns a "*_99.dump" file obsolete because all lines written in such a file will already be present in lower-numbered "*.dump" files. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
8145620a95
commit
b5a92d72eb
@ -331,11 +331,6 @@ func RunTest()
|
||||
call ch_log('First screendump for ' .. in_name_and_out_name)
|
||||
let fail = VerifyScreenDump(buf, root_00, {})
|
||||
|
||||
" Clear the shell info if there are not enough lines to cause a scroll
|
||||
if filetype == 'sh' && IsWinNumOneAtEOF(in_name_and_out_name)
|
||||
call term_sendkeys(buf, ":redraw!\<CR>")
|
||||
endif
|
||||
|
||||
" Make a Screendump every 18 lines of the file: failed/root_NN.dump
|
||||
let nr = 1
|
||||
let root_next = printf('%s_%02d', root, nr)
|
||||
@ -361,12 +356,6 @@ func RunTest()
|
||||
let in_name_and_out_name = fname .. ': failed/' .. root_next .. '.dump'
|
||||
endwhile
|
||||
endif
|
||||
|
||||
" Screendump at the end of the file: failed/root_99.dump
|
||||
call term_sendkeys(buf, 'Gzb')
|
||||
let root_last = root .. '_99'
|
||||
call ch_log('Last screendump for ' .. fname .. ': failed/' .. root_last .. '.dump')
|
||||
let fail += VerifyScreenDump(buf, root_last, {})
|
||||
call StopVimInTerminal(buf)
|
||||
finally
|
||||
call delete('Xtestscript')
|
||||
|
||||
Reference in New Issue
Block a user