From 4154d3291ba5051e0951f86c7810833de437e2fd Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 16 Sep 2014 09:38:22 -0700 Subject: Make test_wpt params optional Fixes an exception in `mach test`. --- python/servo/testing_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/servo') diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 0ce95850f4b..56eb1377f7b 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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()) -- cgit v1.2.3