tests: Sleeps over 20 seconds if nginx failed to exit immediately

Sometimes nginx failed to exit cleanly in the expected time. This patch adds
the capability to wait for more 20 seconds.
This commit is contained in:
Felipe Zimmerle 2014-01-03 13:09:44 -08:00
parent fb4e1f1b6b
commit 445783d067

View File

@ -581,7 +581,12 @@ sub nginx_stop {
sleep 0.5;
if (-e $PID_FILE) {
msg("Nginx stop failed: $PID_FILE still exists");
vrb("Nginx pid file still exists, sleeping for more 20 seconds.");
sleep 20;
if (-e $PID_FILE) {
msg("Nginx stop failed: $PID_FILE still exists");
}
}
return $rc;