Bug 416922 - per-test timeout in talos allow timeouts to be created per-test, but set a default if they are not specified p=anodelman, r=rhelmer

This commit is contained in:
anodelman@mozilla.com 2008-03-04 14:46:25 -08:00
Родитель 079b178b0e
Коммит c9790bdd51
2 изменённых файлов: 5 добавлений и 1 удалений

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

@ -60,6 +60,7 @@ env :
# url_mod : (OPTIONAL) a bit of code to be evaled and added to the given url during each cycle of the test
# resolution: (REQUIRED) how long (in seconds) to pause between counter sampling
# cycles : (REQUIRED) how many times to run the test
# timeout : (OPTIONAL) how many seconds the test can run before we consider it failed and quit (default 8 hours)
# counters : (REQUIRED) types of system activity to monitor during test run, can be empty
# For possible values of counters argument on Windows, see
# http://technet2.microsoft.com/WindowsServer/en/Library/86b5d116-6fb3-427b-af8c-9077162125fe1033.mspx?mfr=true

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

@ -130,7 +130,10 @@ def runTest(browser_config, test_config):
for i in range(test_config['cycles']):
# Run the test
browser_results = ""
timeout = 28800 # 8 hours
if 'timeout' in test_config:
timeout = test_config['timeout']
else:
timeout = 28800 # 8 hours
total_time = 0
output = ''
url = test_config['url']