mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision a806d658df3bcc3f05675ad8d08a6e109177c6b0
This commit is contained in:
parent
af777fcf15
commit
23dfe7c81e
155 changed files with 2487 additions and 546 deletions
|
@ -20,7 +20,7 @@ from tools.wpt import markdown
|
|||
from tools import localpaths # noqa: F401
|
||||
|
||||
logger = None
|
||||
run_step, write_inconsistent, write_results = None, None, None
|
||||
run_step, write_inconsistent, write_slow_tests, write_results = None, None, None, None
|
||||
wptrunner = None
|
||||
|
||||
def setup_logging():
|
||||
|
@ -35,9 +35,9 @@ def setup_logging():
|
|||
|
||||
|
||||
def do_delayed_imports():
|
||||
global wptrunner, run_step, write_inconsistent, write_results
|
||||
global wptrunner, run_step, write_inconsistent, write_slow_tests, write_results
|
||||
from wptrunner import wptrunner
|
||||
from wptrunner.stability import run_step, write_inconsistent, write_results
|
||||
from wptrunner.stability import run_step, write_inconsistent, write_slow_tests, write_results
|
||||
|
||||
|
||||
class TravisFold(object):
|
||||
|
@ -283,12 +283,15 @@ def run(venv, wpt_args, **kwargs):
|
|||
logger.info("Starting tests")
|
||||
|
||||
wpt_logger = wptrunner.logger
|
||||
results, inconsistent, iterations = run_step(wpt_logger, wpt_kwargs["repeat"], True, {}, **wpt_kwargs)
|
||||
results, inconsistent, slow, iterations = run_step(wpt_logger, wpt_kwargs["repeat"], True, {}, **wpt_kwargs)
|
||||
|
||||
if results:
|
||||
if inconsistent:
|
||||
write_inconsistent(logger.error, inconsistent, iterations)
|
||||
retcode = 2
|
||||
elif slow:
|
||||
write_slow_tests(logger.error, slow)
|
||||
retcode = 2
|
||||
else:
|
||||
logger.info("All results were stable\n")
|
||||
with TravisFold("full_results"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue