aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-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