Bug 1150134 - Part 3: Avoid hitting the network from Telemetry for xpcshell tests. r=yoric
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Tue, 14 Apr 2015 16:49:57 +0200
changeset 270459 9ad1a99dfdaa53bb3a9f8fa9cfc503a4f8b5d37f
parent 270458 80336b8a9ada4e9770d934e7081a796a53770dba
child 270460 94f4016b176d2ec2abaaee5939c9e10018e1bac5
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoric
bugs1150134
milestone40.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 1150134 - Part 3: Avoid hitting the network from Telemetry for xpcshell tests. r=yoric
testing/xpcshell/head.js
--- a/testing/xpcshell/head.js
+++ b/testing/xpcshell/head.js
@@ -1421,16 +1421,17 @@ try {
 // We need to avoid hitting the network with certain components.
 try {
   if (runningInParent) {
     let prefs = Components.classes["@mozilla.org/preferences-service;1"]
       .getService(Components.interfaces.nsIPrefBranch);
 
     prefs.setCharPref("media.gmp-manager.url.override", "http://%(server)s/dummy-gmp-manager.xml");
     prefs.setCharPref("browser.selfsupport.url", "https://%(server)s/selfsupport-dummy/");
+    prefs.setCharPref("toolkit.telemetry.server", "https://%(server)s/telemetry-dummy");
   }
 } catch (e) { }
 
 // Make tests run consistently on DevEdition (which has a lightweight theme
 // selected by default).
 try {
   if (runningInParent) {
     let prefs = Components.classes["@mozilla.org/preferences-service;1"]