helpers2.1: display 100 lines instead of 20 in CI context when service fails to start

This commit is contained in:
Alexandre Aubin 2024-06-23 14:30:57 +02:00
parent 262453f132
commit 9298738d06

View file

@ -71,6 +71,12 @@ ynh_systemctl() {
timeout=${timeout:-60} timeout=${timeout:-60}
# =========================================== # ===========================================
# On CI, use length=100 because it's sometime hell to debug otherwise for super-long output
if ynh_in_ci_tests && [ $length -le 20 ]
then
length=100
fi
# Manage case of service already stopped # Manage case of service already stopped
if [ "$action" == "stop" ] && ! systemctl is-active --quiet $service; then if [ "$action" == "stop" ] && ! systemctl is-active --quiet $service; then
return 0 return 0