mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
servo: Better check that required modules are installed
Source-Repo: https://github.com/servo/servo Source-Revision: e31744e48ee5eecf5dd9412d0b7f7eb7d6488f55
This commit is contained in:
parent
1a011fb7d4
commit
41a48d09ab
@ -287,11 +287,16 @@ class MachCommands(CommandBase):
|
||||
|
||||
try:
|
||||
import wptrunner
|
||||
from wptrunner.browsers import servo
|
||||
except ImportError:
|
||||
subprocess.check_call(["pip", "install", "-r",
|
||||
path.join("tests", "wpt", "harness", "requirements.txt")])
|
||||
subprocess.check_call(["pip", "install", "-r",
|
||||
path.join("tests", "wpt", "harness", "requirements_servo.txt")])
|
||||
try:
|
||||
import blessings
|
||||
except ImportError:
|
||||
subprocess.check_call(["pip", "install", "blessings"])
|
||||
|
||||
# This is an unfortunate hack. Because mozlog gets imported by wptcommandline
|
||||
# before the virtualenv is initalised it doesn't see the blessings module so we don't
|
||||
|
Loading…
Reference in New Issue
Block a user