This commit is contained in:
Ted Mielczarek 2009-10-29 19:20:42 -04:00
Родитель e380a4c097
Коммит 250bf28932
2 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -70,6 +70,9 @@ if __name__ == '__main__':
appPath = os.path.join(SCRIPT_DIR, automation.DEFAULT_APP)
status = automation.runApp(url, browserEnv, appPath, PROFILE_DIRECTORY, {},
# the profiling HTML doesn't output anything,
# so let's just ignore this for now.
timeout = None)
# so let's just set this really high for now.
#FIXME: the POSIX codepath accepts None
# as "no timeout", the Windows codepath
# should too.
timeout = 1800.0)
sys.exit(status)

Просмотреть файл

@ -456,10 +456,13 @@ Are you executing $objdir/_tests/testing/mochitest/runtests.py?"""
os.remove(LEAK_REPORT_FILE)
# then again to actually run mochitest
# don't use a timeout if we're not auto-running
#XXX: use the value from --timeout when bug 521130 lands, for now
# use the Mochitest JS harness's timeout + 30 seconds
timeout = options.autorun and 330.0 or None
if options.timeout:
timeout = options.timeout + 30
elif options.autorun:
#FIXME: need to support None for timeout values on Win32
timeout = 1000000
else:
timeout = 330.0 # default JS harness timeout is 300 seconds
automation.log.info("INFO | runtests.py | Running tests: start.\n")
status = automation.runApp(testURL, browserEnv, options.app,
PROFILE_DIRECTORY, options.browserArgs,