auto merge of #5221 : andreastt/servo/ato/wpt-bootstrap, r=Manishearth

`./mach test-wpt` will fail in non-obvious ways unless all wpt submodules have recursively been checked out first.  This ensure they have been when running the command in a checkout of Servo that hasn't been bootstrapped yet.
This commit is contained in:
bors-servo 2015-03-15 12:12:54 -06:00
commit 7a29991382

View file

@ -204,6 +204,7 @@ class MachCommands(CommandBase):
description='Run the web platform tests',
category='testing')
def test_wpt_failure(self):
self.ensure_bootstrapped()
return not subprocess.call([
"bash",
path.join("tests", "wpt", "run.sh"),
@ -221,6 +222,8 @@ class MachCommands(CommandBase):
"params", default=None, nargs='...',
help="command-line arguments to be passed through to wpt/run.sh")
def test_wpt(self, processes=None, params=None):
self.ensure_bootstrapped()
if params is None:
params = []
else: