Skip to content
Snippets Groups Projects
Commit 04dd2d9e authored by Marc-Olivier Andrez's avatar Marc-Olivier Andrez
Browse files

Merge branch 'reduce-waiting-time-when-locally-starting-asapo-services' into 'develop'

test: reduce waiting time when locally starting `ASAP::O` services

See merge request asapo/asapo!239
parents 88ea7e87 55234f74
No related branches found
No related tags found
No related merge requests found
......@@ -39,5 +39,17 @@ service slapd start
ldapadd -x -D "ou=rgy,o=desy,c=de" -f /etc/ldap/record.ldif -h localhost
cd / && supervisord --configuration /etc/supervisord.conf &
sleep 20
cd -
success=1
excluded_states=(STOPPED STARTING BACKOFF STOPPING EXITED FATAL UNKNOWN)
for i in {1..20}; do
sleep 1
supervisorctl status | grep -e $(sed 's/ / -e /g' <<<${excluded_states[@]})
if [ $? -ne 0 ]; then
success=0
break
fi
done
supervisorctl status
exit $success
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment