From a2bb676f2cda07dc3b6574f669c8cea1281a6106 Mon Sep 17 00:00:00 2001 From: Chris AtLee Date: Mon, 21 Sep 2009 08:04:24 -0400 Subject: [PATCH] Bug 372581 - When running on a debug build, allow for much more time when waiting for the server to start up. r=ted --- testing/mochitest/runtests.py.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing/mochitest/runtests.py.in b/testing/mochitest/runtests.py.in index 079782923cc..3c6568e72b3 100644 --- a/testing/mochitest/runtests.py.in +++ b/testing/mochitest/runtests.py.in @@ -74,7 +74,10 @@ BROWSER_CHROME_URL = "chrome://browser/content/browser.xul" # Max time in seconds to wait for server startup before tests will fail -- if # this seems big, it's mostly for debug machines where cold startup # (particularly after a build) takes forever. -SERVER_STARTUP_TIMEOUT = 45 +if automation.IS_DEBUG_BUILD: + SERVER_STARTUP_TIMEOUT = 180 +else: + SERVER_STARTUP_TIMEOUT = 45 oldcwd = os.getcwd() SCRIPT_DIRECTORY = os.path.abspath(os.path.realpath(os.path.dirname(sys.argv[0])))