aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-04-03 10:50:37 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-04-03 23:29:22 +0100
commite31744e48ee5eecf5dd9412d0b7f7eb7d6488f55 (patch)
treea82b4339046d16d5af00df4f6ff1af480e7168c5 /python/servo/testing_commands.py
parent6b8aaf3c57c930263a4cd22ac9b4803bb26ff110 (diff)
downloadservo-e31744e48ee5eecf5dd9412d0b7f7eb7d6488f55.tar.gz
servo-e31744e48ee5eecf5dd9412d0b7f7eb7d6488f55.zip
Better check that required modules are installed
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index c2154859dde..98ab52fdf4f 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -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