mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
ci: Also fail if last restart hang up
This commit is contained in:
@@ -96,11 +96,16 @@ run_test_wd() {
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
restarts=$[ restarts - 1 ]
|
||||||
if test "$(stat -c "%s" "$status_file")" -eq 0 ; then
|
if test "$(stat -c "%s" "$status_file")" -eq 0 ; then
|
||||||
# status file not updated, assuming hang
|
# status file not updated, assuming hang
|
||||||
kill -KILL $pid
|
kill -KILL $pid
|
||||||
echo "Test ${test_name} hang up, restarting"
|
if test $restarts -eq 0 ; then
|
||||||
eval "$restart_cmd"
|
fail "${test_name}" E "Test hang up"
|
||||||
|
else
|
||||||
|
echo "Test ${test_name} hang up, restarting"
|
||||||
|
eval "$restart_cmd"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
local new_failed="$(cat "$status_file")"
|
local new_failed="$(cat "$status_file")"
|
||||||
if test "x$new_failed" != "x0" ; then
|
if test "x$new_failed" != "x0" ; then
|
||||||
@@ -108,7 +113,6 @@ run_test_wd() {
|
|||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
restarts=$[ restarts - 1 ]
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user