aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 0bedbdfe30e..57f432619a1 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -100,7 +100,10 @@ class MachCommands(CommandBase):
help="Specific component to test")
@CommandArgument('test_name', nargs=argparse.REMAINDER,
help="Only run tests that match this pattern")
- def test_unit(self, test_name, component=None):
+ def test_unit(self, test_name=None, component=None):
+ if test_name is None:
+ test_name = []
+
self.ensure_bootstrapped()
self.ensure_built_tests()