@@ -9,6 +9,7 @@ function! s:run()
9
9
for vimfile in glob (s: sdir . ' /test*.vim' , 0 , 1 )
10
10
let okfile = fnamemodify (vimfile, ' :r' ) . ' .ok'
11
11
let outfile = fnamemodify (vimfile, ' :r' ) . ' .out'
12
+ let skip = filereadable (fnamemodify (vimfile, ' :r' ) . ' .skip' )
12
13
let src = readfile (vimfile)
13
14
let r = s: vimlparser .StringReader.new (src )
14
15
if vimfile = ~# ' test_neo'
@@ -26,11 +27,17 @@ function! s:run()
26
27
endtry
27
28
if system (printf (' diff %s %s' , shellescape (okfile), shellescape (outfile))) == " "
28
29
let line = printf (' %s => ok' , fnamemodify (vimfile, ' :.' ))
30
+ call append (line (' $' ), line )
29
31
else
30
- let line = printf (' %s => ng' , fnamemodify (vimfile, ' :.' ))
31
- let ng += 1
32
+ if ! skip
33
+ let ng += 1
34
+ endif
35
+ let line = printf (' %s => ' . (skip ? ' skip' : ' ng' ), fnamemodify (vimfile, ' :.' ))
36
+ call append (line (' $' ), line )
37
+ for line in readfile (outfile)
38
+ call append (line (' $' ), ' ' . line )
39
+ endfor
32
40
endif
33
- call append (line (' $' ), line )
34
41
endfor
35
42
if $CI == ' true'
36
43
call writefile (getline (1 , ' $' ), ' test.log' )
0 commit comments