aboutsummaryrefslogtreecommitdiff
path: root/ci/common
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-08 00:46:32 +0300
committerZyX <kp-pav@yandex.ru>2017-04-09 03:36:16 +0300
commit3321232c814f2847e835a6aaaf72b257cb4f6432 (patch)
tree365dbc2561f1a9e004826834a2891f92de7c46cf /ci/common
parenta83511d1a19d6277f8258f2c5b970c936f0bc56e (diff)
downloadrneovim-3321232c814f2847e835a6aaaf72b257cb4f6432.tar.gz
rneovim-3321232c814f2847e835a6aaaf72b257cb4f6432.tar.bz2
rneovim-3321232c814f2847e835a6aaaf72b257cb4f6432.zip
ci: Allow check-single-includes to hang
Diffstat (limited to 'ci/common')
-rw-r--r--ci/common/suite.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/ci/common/suite.sh b/ci/common/suite.sh
index e22252c985..568d5d5bee 100644
--- a/ci/common/suite.sh
+++ b/ci/common/suite.sh
@@ -60,6 +60,12 @@ run_test() {
}
run_test_wd() {
+ local hang_ok=
+ if test "x$1" = "x--allow-hang" ; then
+ hang_ok=1
+ shift
+ fi
+
local timeout="$1"
test $# -gt 0 && shift
@@ -105,7 +111,9 @@ run_test_wd() {
# status file not updated, assuming hang
kill -KILL $pid
if test $restarts -eq 0 ; then
- fail "${test_name}" E "Test hang up"
+ if test "x$hang_ok" = "x" ; then
+ fail "${test_name}" E "Test hang up"
+ fi
else
echo "Test ${test_name} hang up, restarting"
eval "$restart_cmd"