mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
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:
commit
7a29991382
1 changed files with 3 additions and 0 deletions
|
@ -204,6 +204,7 @@ class MachCommands(CommandBase):
|
||||||
description='Run the web platform tests',
|
description='Run the web platform tests',
|
||||||
category='testing')
|
category='testing')
|
||||||
def test_wpt_failure(self):
|
def test_wpt_failure(self):
|
||||||
|
self.ensure_bootstrapped()
|
||||||
return not subprocess.call([
|
return not subprocess.call([
|
||||||
"bash",
|
"bash",
|
||||||
path.join("tests", "wpt", "run.sh"),
|
path.join("tests", "wpt", "run.sh"),
|
||||||
|
@ -221,6 +222,8 @@ class MachCommands(CommandBase):
|
||||||
"params", default=None, nargs='...',
|
"params", default=None, nargs='...',
|
||||||
help="command-line arguments to be passed through to wpt/run.sh")
|
help="command-line arguments to be passed through to wpt/run.sh")
|
||||||
def test_wpt(self, processes=None, params=None):
|
def test_wpt(self, processes=None, params=None):
|
||||||
|
self.ensure_bootstrapped()
|
||||||
|
|
||||||
if params is None:
|
if params is None:
|
||||||
params = []
|
params = []
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue