mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 01:22:41 +00:00
ci: Allow check-single-includes to hang
This commit is contained in:
@@ -60,6 +60,12 @@ run_test() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run_test_wd() {
|
run_test_wd() {
|
||||||
|
local hang_ok=
|
||||||
|
if test "x$1" = "x--allow-hang" ; then
|
||||||
|
hang_ok=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
local timeout="$1"
|
local timeout="$1"
|
||||||
test $# -gt 0 && shift
|
test $# -gt 0 && shift
|
||||||
|
|
||||||
@@ -105,7 +111,9 @@ run_test_wd() {
|
|||||||
# status file not updated, assuming hang
|
# status file not updated, assuming hang
|
||||||
kill -KILL $pid
|
kill -KILL $pid
|
||||||
if test $restarts -eq 0 ; then
|
if test $restarts -eq 0 ; then
|
||||||
|
if test "x$hang_ok" = "x" ; then
|
||||||
fail "${test_name}" E "Test hang up"
|
fail "${test_name}" E "Test hang up"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Test ${test_name} hang up, restarting"
|
echo "Test ${test_name} hang up, restarting"
|
||||||
eval "$restart_cmd"
|
eval "$restart_cmd"
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ csi_clean() {
|
|||||||
run_test 'top_make clint-full' clint
|
run_test 'top_make clint-full' clint
|
||||||
run_test 'top_make testlint' testlint
|
run_test 'top_make testlint' testlint
|
||||||
CLICOLOR_FORCE=1 run_test_wd \
|
CLICOLOR_FORCE=1 run_test_wd \
|
||||||
|
--allow-hang \
|
||||||
5s \
|
5s \
|
||||||
'top_make check-single-includes' \
|
'top_make check-single-includes' \
|
||||||
'csi_clean' \
|
'csi_clean' \
|
||||||
|
|||||||
Reference in New Issue
Block a user