From ee7945e1b23cb7c7f92c40ec69deadfcd4799270 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Tue, 14 Aug 2012 10:01:58 +0000 Subject: Give time to free the port when shutting down apache on OSX. Sometimes the next perf test would try to start the http server, but the port wouldn't be available. This matches what we do on Linux. In the long run, we should use a random port to avoid having to wait. BUG=29228 Review URL: https://chromiumcodereview.appspot.com/10834299 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151449 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/python/google/platform_utils_mac.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/python/google/platform_utils_mac.py b/tools/python/google/platform_utils_mac.py index 2e56a3d..c4686fb 100644 --- a/tools/python/google/platform_utils_mac.py +++ b/tools/python/google/platform_utils_mac.py @@ -140,4 +140,6 @@ class PlatformUtility(object): if not self._httpd_cmd_string: return ["true"] # Haven't been asked for the start cmd yet. Just pass. - return [self._bash, "-c", self._httpd_cmd_string + ' -k stop'] + # Add a sleep after the shutdown because sometimes it takes some time for + # the port to be available again. + return [self._bash, "-c", self._httpd_cmd_string + ' -k stop && sleep 5'] -- cgit v1.1