aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-04 04:59:30 +0300
committerZyX <kp-pav@yandex.ru>2017-04-04 04:59:30 +0300
commit017f64b9707955e66319e07e6e8f173b29583235 (patch)
tree482e67850e52206320c9f970e5156a885ffbfd38
parentdcad882256af21bb620f580ff8a112691cd149db (diff)
downloadrneovim-017f64b9707955e66319e07e6e8f173b29583235.tar.gz
rneovim-017f64b9707955e66319e07e6e8f173b29583235.tar.bz2
rneovim-017f64b9707955e66319e07e6e8f173b29583235.zip
ci: Also fail if last restart hang up
-rw-r--r--ci/common/suite.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/ci/common/suite.sh b/ci/common/suite.sh
index 44a560c50a..46207754fa 100644
--- a/ci/common/suite.sh
+++ b/ci/common/suite.sh
@@ -96,11 +96,16 @@ run_test_wd() {
break
fi
done
+ restarts=$[ restarts - 1 ]
if test "$(stat -c "%s" "$status_file")" -eq 0 ; then
# status file not updated, assuming hang
kill -KILL $pid
- echo "Test ${test_name} hang up, restarting"
- eval "$restart_cmd"
+ if test $restarts -eq 0 ; then
+ fail "${test_name}" E "Test hang up"
+ else
+ echo "Test ${test_name} hang up, restarting"
+ eval "$restart_cmd"
+ fi
else
local new_failed="$(cat "$status_file")"
if test "x$new_failed" != "x0" ; then
@@ -108,7 +113,6 @@ run_test_wd() {
fi
return 0
fi
- restarts=$[ restarts - 1 ]
done
}