Add more timeouts

This commit is contained in:
Michael Hansen 2022-05-05 10:42:26 -04:00
commit 8d6c33a8c3

View file

@ -116,15 +116,15 @@ ENV USER root
ENV MIMIC_DIR /tmp/mycroft/cache/tts/Mimic3TTSPlugin
# Start relevant services:
# 1. Start message bus, wait for ready message in log
# 2. Start audio service, wait for ready message in log
# 1. Start message bus, wait for ready message in log (1 min timeout)
# 2. Start audio service, wait for ready message in log (1 min timeout)
# 3. Run mycroft-speak with sample text
# 4. Watch cache directory for a file creation (5 min timeout)
# 5. Copy first WAV file to known location
RUN mycroft-core/bin/mycroft-start bus && \
tail -f /var/log/mycroft/bus.log | grep -iq 'message bus service started' && \
timeout 60 tail -f /var/log/mycroft/bus.log | grep -iq 'message bus service started' && \
mycroft-core/bin/mycroft-start audio && \
tail -f /var/log/mycroft/audio.log | grep -iq 'audio service is ready' && \
timeout 60 tail -f /var/log/mycroft/audio.log | grep -iq 'audio service is ready' && \
xargs -a tests/apope_sample.txt mycroft-core/bin/mycroft-speak && \
mkdir -p "${MIMIC_DIR}" && \
for i in $(seq 1 300); do \