Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 843798 - Allow overriding of autolog ES index. r=bc

  • Loading branch information...
commit b245259abaeb51e1baf755648542aebc131b129f 1 parent 0ec36fd
@markrcote markrcote authored
View
3  configs/unittest_defaults.ini.example
@@ -33,6 +33,9 @@ es_server = buildbot-es.metrics.scl3.mozilla.com:9200
# For local development use http://localhost:8051
rest_server = http://brasstacks.mozilla.com/autologserver/
+# Autolog ElasticSearch index
+index = autolog
+
# Submit passing results to Autolog. Note: Setting include_pass to
# True will cause a failure until RESTfulAutologTestGroup.submit
# supports submitting results via POST.
View
2  tests/runtestsremote.py
@@ -140,6 +140,7 @@ def load_test_parameters(self, test_parameters, config_file):
test_parameters['es_server'] = cfg.get('autolog', 'es_server')
test_parameters['rest_server'] = cfg.get('autolog', 'rest_server')
+ test_parameters['index'] = cfg.get('autolog', 'index')
test_parameters['include_pass'] = cfg.getboolean('autolog', 'include_pass')
test_parameters['submit_log'] = cfg.getboolean('autolog', 'submit_log')
test_parameters['use_newparser'] = cfg.getboolean('autolog', 'use_newparser')
@@ -280,6 +281,7 @@ def process_test_log(self, test_parameters, logfilehandle):
self.logger.debug('testgroup_name = %s' % testgroup_name)
testgroup = RESTfulAutologTestGroup(
+ index=test_parameters['index'],
testgroup=testgroup_name,
os='android',
platform=platform_name,
Please sign in to comment.
Something went wrong with that request. Please try again.