mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Make test_wpt params optional
Fixes an exception in `mach test`.
This commit is contained in:
parent
66a7de750c
commit
4154d3291b
1 changed files with 3 additions and 1 deletions
|
@ -140,6 +140,8 @@ class MachCommands(CommandBase):
|
|||
allow_all_args=True)
|
||||
@CommandArgument('params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to wpt/run.sh")
|
||||
def test_wpt(self, params):
|
||||
def test_wpt(self, params=None):
|
||||
if params is None:
|
||||
params = []
|
||||
return subprocess.call(["bash", path.join("tests", "wpt", "run.sh")] + params,
|
||||
env=self.build_env())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue