Refs #30 Adjust tests for PHP 5.2

This commit is contained in:
cytopia
2018-08-02 21:55:44 +02:00
parent cb176f5eba
commit bd336c9e09
3 changed files with 127 additions and 114 deletions

View File

@@ -71,6 +71,12 @@ run "sleep 10"
###
### Check correct PHP-FPM user
###
# On pm = ondemand, there will be no child process, so we need to create some traffic
# in order to have child proccesses spawn
for i in $(seq 1 10); do
curl http://127.0.0.1:${WWW_PORT}/index.php?${i} >/dev/null 2>&1 &
done
if ! docker_exec "${did}" "ps auxw | grep -E '(php-fpm: pool|php-cgi)' | grep -v grep | awk '{ print \$1 }' | tail -1 | grep devilbox"; then
docker_exec "${did}" "ps auxw"