wait for log file reation

This commit is contained in:
girish@cloudron.io 2016-01-26 17:50:32 -08:00
parent e0c6ce5523
commit 2c2872d613
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ echo "Starting test cloudron-update-test with pid ${test_pids[-1]}"
test_logs+=("logs/cloudron-update-test.log")
# stream all the logs (to stderr so that it's not in email but in deploy logs)
sleep 10 # wait for cloudron-update-test.log to get created (since it's a background subshell)
tail -f ${test_logs[*]} >&2 &
tail_pid=$!