aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-09-17 17:05:59 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-09-17 17:05:59 -0700
commit340ebdfd85f9f9bb3caa352f5c679b4f3b3b9f97 (patch)
tree03617c70425172b9afa7e65e3601519505a6ed0f /python/servo
parent8aeb90e8c34a6872cf418643fef40e67382737e2 (diff)
parent4154d3291ba5051e0951f86c7810833de437e2fd (diff)
downloadservo-340ebdfd85f9f9bb3caa352f5c679b4f3b3b9f97.tar.gz
servo-340ebdfd85f9f9bb3caa352f5c679b4f3b3b9f97.zip
Merge pull request #3372 from mbrubeck/wpt-params
Make test_wpt params optional. r=me
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/testing_commands.py4
1 files changed, 3 insertions, 1 deletions
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())