Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Allow tools to be wpt_tools for csswg-test
Browse files Browse the repository at this point in the history
The Servo driver change is okay because we're guaranteed to have
tools on the Python path by the point this gets run
  • Loading branch information
gsnedders authored and Ms2ger committed Jan 26, 2017
1 parent 0138119 commit 7c580f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions wptrunner/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def do_delayed_imports(logger, test_paths):

try:
from tools.serve import serve
except ImportError:
from wpt_tools.serve import serve
except ImportError:
failed.append("serve")

Expand Down
2 changes: 1 addition & 1 deletion wptrunner/executors/executorservodriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

def do_delayed_imports():
global webdriver
from tools import webdriver
import webdriver


class ServoWebDriverProtocol(Protocol):
Expand Down
5 changes: 4 additions & 1 deletion wptrunner/update/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@

def setup_paths(sync_path):
sys.path.insert(0, os.path.abspath(sync_path))
from tools import localpaths
try:
from tools import localpaths
except ImportError:
from wpt_tools import localpaths

class LoadConfig(Step):
"""Step for loading configuration from the ini file and kwargs."""
Expand Down

0 comments on commit 7c580f9

Please sign in to comment.