Bug 1253736 - when running talos in --develop mode, run addons from source, not the signed ones. r=wlach
authorJoel Maher <jmaher@mozilla.com>
Wed, 09 Mar 2016 13:24:06 -0800
changeset 339152 ab7bcfd26c6ef5a3cc179e0e7b8ad7913f867484
parent 339151 5d450b4ccb1410b15ee3c12c4eed6e7968debae3
child 339196 71771eb502289038a197a2a3bb8111edb4d3d182
push id12633
push userjmaher@mozilla.com
push dateThu, 10 Mar 2016 12:48:21 +0000
reviewerswlach
bugs1253736
milestone48.0a1
Bug 1253736 - when running talos in --develop mode, run addons from source, not the signed ones. r=wlach MozReview-Commit-ID: 6iq7IN0BzWu
testing/talos/talos/run_tests.py
--- a/testing/talos/talos/run_tests.py
+++ b/testing/talos/talos/run_tests.py
@@ -103,16 +103,22 @@ def run_tests(config, browser_config):
         test['cleanup'] = utils.interpolate(test['cleanup'])
 
     # pass --no-remote to firefox launch, if --develop is specified
     # we do that to allow locally the user to have another running firefox
     # instance
     if browser_config['develop']:
         browser_config['extra_args'] = '--no-remote'
 
+    # with addon signing for production talos, we want to develop without it
+    if browser_config['develop'] or browser_config['branch_name'] == 'Try':
+        browser_config['preferences']['xpinstall.signatures.required'] = False
+        browser_config['extensions'] = [os.path.dirname(i)
+                                        for i in browser_config['extensions']]
+
     # set defaults
     title = config.get('title', '')
     testdate = config.get('testdate', '')
 
     if browser_config['e10s'] and not title.endswith(".e"):
         # we are running in e10s mode
         title = "%s.e" % (title,)
 
@@ -210,19 +216,18 @@ def run_tests(config, browser_config):
         httpd.stop()
 
     LOG.info("Completed test suite (%s)" % timer.elapsed())
 
     # output results
     if results_urls:
         talos_results.output(results_urls)
         if browser_config['develop']:
-            print
-            print ("Thanks for running Talos locally. Results are in"
-                   " %s and %s" % (results_urls['datazilla_urls']))
+            print ("Thanks for running Talos locally. Results are in %s"
+                   % (results_urls['datazilla_urls']))
 
     # we will stop running tests on a failed test, or we will return 0 for
     # green
     return 0
 
 
 def main(args=sys.argv[1:]):
     try: