Skip to content

Commit cbf3bd1

Browse files
committed
append output failed
1 parent a26f34a commit cbf3bd1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/run.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ function! s:run()
2626
endtry
2727
if system(printf('diff %s %s', shellescape(okfile), shellescape(outfile))) == ""
2828
let line = printf('%s => ok', fnamemodify(vimfile, ':.'))
29+
call append(line('$'), line)
2930
else
3031
let line = printf('%s => ng', fnamemodify(vimfile, ':.'))
32+
call append(line('$'), line)
33+
for line in readfile(outfile)
34+
call append(line('$'), ' ' . line)
35+
endfor
3136
let ng += 1
3237
endif
33-
call append(line('$'), line)
3438
endfor
3539
if $CI == 'true'
3640
call writefile(getline(1, '$'), 'test.log')

0 commit comments

Comments
 (0)