vim-patch:8.1.2056: "make test" for indent files doesn't cause make to fail
Problem: "make test" for indent files doesn't cause make to fail.
Solution: Exit the script with ":cquit". (Daniel Hahler, closes vim/vim#4949)
cd67059c0c
This commit is contained in:
parent
0e75a9eead
commit
660b452440
|
@ -42,6 +42,7 @@ tags
|
||||||
/src/nvim/testdir/valgrind.*
|
/src/nvim/testdir/valgrind.*
|
||||||
/src/nvim/testdir/.gdbinit
|
/src/nvim/testdir/.gdbinit
|
||||||
/runtime/indent/testdir/*.out
|
/runtime/indent/testdir/*.out
|
||||||
|
+runtime/indent/testdir/*.fail
|
||||||
# Generated by src/nvim/testdir/runnvim.sh.
|
# Generated by src/nvim/testdir/runnvim.sh.
|
||||||
/src/nvim/testdir/*.tlog
|
/src/nvim/testdir/*.tlog
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ func HandleSwapExists()
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
let failed_count = 0
|
||||||
for fname in glob('testdir/*.in', 1, 1)
|
for fname in glob('testdir/*.in', 1, 1)
|
||||||
let root = substitute(fname, '\.in', '', '')
|
let root = substitute(fname, '\.in', '', '')
|
||||||
|
|
||||||
|
@ -110,6 +111,7 @@ for fname in glob('testdir/*.in', 1, 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if failed
|
if failed
|
||||||
|
let failed_count += 1
|
||||||
exe 'write ' . root . '.fail'
|
exe 'write ' . root . '.fail'
|
||||||
echoerr 'Test ' . fname . ' FAILED!'
|
echoerr 'Test ' . fname . ' FAILED!'
|
||||||
else
|
else
|
||||||
|
@ -123,4 +125,8 @@ endfor
|
||||||
" Matching "if 1" at the start.
|
" Matching "if 1" at the start.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if failed_count > 0
|
||||||
|
" have make report an error
|
||||||
|
cquit
|
||||||
|
endif
|
||||||
qall!
|
qall!
|
||||||
|
|
Loading…
Reference in New Issue