Bug 840186 - Change Firefox Health Report server URI in automation; r=jmaher
authorGregory Szorc <gps@mozilla.com>
Thu, 14 Feb 2013 12:24:21 -0800
changeset 131831 19abb6fef9dd8508ffa0f923ea5e4c184732e912
parent 131830 0e408e884d6ab14dd971656f5958ccdf4fa000a4
child 131832 4eed73abf01c76a6546d43f39e81f443d2e56913
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs840186
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 840186 - Change Firefox Health Report server URI in automation; r=jmaher
build/automation.py.in
--- a/build/automation.py.in
+++ b/build/automation.py.in
@@ -528,16 +528,20 @@ user_pref("security.notification_enable_
 user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
 
 // Get network events.
 user_pref("network.activity.blipIntervalMilliseconds", 250);
 
 // Don't allow the Data Reporting service to prompt for policy acceptance.
 user_pref("datareporting.policy.dataSubmissionPolicyBypassAcceptance", true);
 
+// Point Firefox Health Report at a local server. We don't care if it actually
+// works. It just can't hit the default production endpoint.
+user_pref("datareporting.healthreport.documentServerURI", "http://%(server)s/healthreport/");
+
 // Make sure CSS error reporting is enabled for tests
 user_pref("layout.css.report_errors", true);
 """ % { "server" : self.webServer + ":" + str(self.httpPort) }
     prefs.append(part)
 
     if useServerLocations:
       # We need to proxy every server but the primary one.
       origins = ["'%s://%s:%s'" % (l.scheme, l.host, l.port)
@@ -1285,9 +1289,10 @@ user_pref("camino.use_system_proxy_setti
       # "destination directory must not already exist".
       shutil.copytree(extensionSource, os.path.join(extensionsRootDir, extensionID))
 
     else:
       self.log.info("INFO | automation.py | Cannot install extension, invalid extensionSource at: %s", extensionSource)
 
   def elf_arm(self, filename):
     data = open(filename, 'rb').read(20)
-    return data[:4] == "\x7fELF" and ord(data[18]) == 40 # EM_ARM
\ No newline at end of file
+    return data[:4] == "\x7fELF" and ord(data[18]) == 40 # EM_ARM
+