Commit e04727e7 authored by machenbach's avatar machenbach Committed by Commit bot

Double timeout for slow tests.

TBR=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/752733003

Cr-Commit-Position: refs/heads/master@{#25512}
parent 38a111c4
...@@ -33,6 +33,7 @@ import time ...@@ -33,6 +33,7 @@ import time
from pool import Pool from pool import Pool
from . import commands from . import commands
from . import perfdata from . import perfdata
from . import statusfile
from . import utils from . import utils
...@@ -98,6 +99,10 @@ class Runner(object): ...@@ -98,6 +99,10 @@ class Runner(object):
"--stress-opt" in self.context.mode_flags or "--stress-opt" in self.context.mode_flags or
"--stress-opt" in self.context.extra_flags): "--stress-opt" in self.context.extra_flags):
timeout *= 4 timeout *= 4
# FIXME(machenbach): Make this more OO. Don't expose default outcomes or
# the like.
if statusfile.IsSlow(test.outcomes or [statusfile.PASS]):
timeout *= 2
if test.dependency is not None: if test.dependency is not None:
dep_command = [ c.replace(test.path, test.dependency) for c in command ] dep_command = [ c.replace(test.path, test.dependency) for c in command ]
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment