Bug 1257797 - Pass product argument by default when running mach web-platform-tests-update, r=Ms2ger
authorJames Graham <james@hoppipolla.co.uk>
Thu, 17 Mar 2016 11:35:32 +0000
changeset 342063 95f97693b04f1d244ef459d248ac862afd8e8536
parent 342061 2b403e072b392321765dc94f66d239a3bab5e585
child 342253 5e43591d463dd108d0cd35a2e302625ce0a3e178
push id13346
push userbmo:james@hoppipolla.co.uk
push dateFri, 18 Mar 2016 11:03:12 +0000
reviewersMs2ger
bugs1257797
milestone48.0a1
Bug 1257797 - Pass product argument by default when running mach web-platform-tests-update, r=Ms2ger MozReview-Commit-ID: QtlQrpaL9J
testing/web-platform/mach_commands.py
--- a/testing/web-platform/mach_commands.py
+++ b/testing/web-platform/mach_commands.py
@@ -83,16 +83,19 @@ class WebPlatformTestsRunner(MozbuildObj
 class WebPlatformTestsUpdater(MozbuildObject):
     """Update web platform tests."""
     def run_update(self, **kwargs):
         import update
         from update import updatecommandline
 
         if kwargs["config"] is None:
             kwargs["config"] = os.path.join(self.topsrcdir, 'testing', 'web-platform', 'wptrunner.ini')
+        if kwargs["product"] is None:
+            kwargs["product"] = "firefox"
+
         updatecommandline.check_args(kwargs)
         logger = update.setup_logging(kwargs, {"mach": sys.stdout})
 
         try:
             update.run_update(logger, **kwargs)
         except:
             import pdb
             import traceback