Bug 1153521 - Update to latest wptrunner, a=testonly

This commit is contained in:
James Graham 2015-04-09 18:36:46 +01:00
parent 106c299a77
commit 90ea54d77c
3 changed files with 14 additions and 3 deletions

View File

@ -373,7 +373,7 @@ class MarionetteRefTestExecutor(RefTestExecutor):
return self.convert_result(test, result)
def screenshot(self, test):
timeout = test.timeout if self.debug_args is None else None
timeout = self.timeout_multiplier * test.timeout if self.debug_args is None else None
test_url = self.test_url(test)

View File

@ -4,6 +4,7 @@
import os
import shutil
import sys
import uuid
from .. import testloader
@ -93,6 +94,14 @@ class UpdateCheckout(Step):
sync_tree.update(state.sync["remote_url"],
state.sync["branch"],
state.local_branch)
sync_path = os.path.abspath(sync_tree.root)
if not sync_path in sys.path:
from update import setup_paths
setup_paths(sync_path)
def restore(self, state):
assert os.path.abspath(state.sync_tree.root) in sys.path
Step.restore(self, state)
class GetSyncTargetCommit(Step):

View File

@ -14,7 +14,7 @@ from base import Step, StepRunner, exit_clean, exit_unclean
from state import State
def setup_paths(sync_path):
sys.path.insert(0, sync_path)
sys.path.insert(0, os.path.abspath(sync_path))
from tools import localpaths
class LoadConfig(Step):
@ -117,7 +117,9 @@ class WPTUpdate(object):
if not kwargs["sync"]:
setup_paths(self.serve_root)
else:
setup_paths(kwargs["sync_path"])
if os.path.exists(kwargs["sync_path"]):
# If the sync path doesn't exist we defer this until it does
setup_paths(kwargs["sync_path"])
self.state = State(logger)
self.kwargs = kwargs