Bug 1253736 - when running talos in --develop mode, run addons from source, not the signed ones. r=wlach
MozReview-Commit-ID: 6iq7IN0BzWu
--- 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: