From 0a44b1558d98d1d7dfbb1ea21e98d7081c0238cc Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 09 2012 13:59:21 +0000 Subject: pause and wait for httpd to go away cleanly --- diff --git a/tests/p_mod_wsgi/mod_wsgi_test.sh b/tests/p_mod_wsgi/mod_wsgi_test.sh index 31b99af..3e70c6c 100755 --- a/tests/p_mod_wsgi/mod_wsgi_test.sh +++ b/tests/p_mod_wsgi/mod_wsgi_test.sh @@ -24,9 +24,9 @@ def application(environ, start_response): EOF t_ServiceControl httpd stop -sleep 2 -killall httpd -sleep 1 +while [ `ps fax | grep 'sbin/httpd' | grep -v grep | wc -l` -gt 0 ]; do + sleep 1 +done t_ServiceControl httpd start curl -s http://localhost/tfapp | grep -q 't_functional_mod_wsgi_test'