mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: display 100 lines instead of 20 in CI context when service fails to start
This commit is contained in:
parent
262453f132
commit
9298738d06
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ ynh_systemctl() {
|
|||
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
|
||||
if [ "$action" == "stop" ] && ! systemctl is-active --quiet $service; then
|
||||
return 0
|
||||
|
|
Loading…
Add table
Reference in a new issue