Bug 1402248 - Disable idle-daily during mochitests to avoid possible background interactions that might cause intermittents. r?jmaher draft
authorMark Banner <standard8@mozilla.com>
Mon, 02 Oct 2017 11:10:15 +0100
changeset 673352 232435f26eadeed1cbdbcdae20bcfa362f936dcf
parent 673329 97efdde466f18cf580fda9673cf4c38ee21fc7b7
child 734068 92b6be1ef6cc67e1d462f4696e13b0acde391a87
push id82541
push userbmo:standard8@mozilla.com
push dateMon, 02 Oct 2017 10:16:12 +0000
reviewersjmaher
bugs1402248
milestone58.0a1
Bug 1402248 - Disable idle-daily during mochitests to avoid possible background interactions that might cause intermittents. r?jmaher Set the idle preference to be the current time, so that idle-daily won't kick in for 24 hours. MozReview-Commit-ID: 6OJCSm8RaeZ
testing/mochitest/runtests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1792,16 +1792,20 @@ toolbar#nav-bar {
         options.extraPrefs.append(
             "browser.tabs.remote.autostart=%s" %
             ('true' if options.e10s else 'false'))
 
         options.extraPrefs.append(
             "dom.ipc.tabs.nested.enabled=%s" %
             ('true' if options.nested_oop else 'false'))
 
+        options.extraPrefs.append(
+            "idle.lastDailyNotification=%d" %
+            (int(time.time()) * 1000))
+
         # get extensions to install
         extensions = self.getExtensionsToInstall(options)
 
         # preferences
         preferences = [
             os.path.join(
                 SCRIPT_DIR,
                 'profile_data',