Fix unit test bustage from bug 679513 by specifying prefs to disable the test pilot information tab
authorMark Banner <bugzilla@standard8.plus.com>
Wed, 12 Oct 2011 07:52:18 +0100
changeset 8633 57183fd2f0757eaa283a62a073bfacd8819787e4
parent 8632 959565f8013a1611102c63921dec0cad276263f7
child 8634 c24fbeb1f0d4d25a80a62abf5118ff1365fcf914
push id6641
push userbugzilla@standard8.plus.com
push dateWed, 12 Oct 2011 06:52:25 +0000
treeherdercomm-central@57183fd2f075 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs679513
Fix unit test bustage from bug 679513 by specifying prefs to disable the test pilot information tab
mail/test/mozmill/migration-from-tb2/prefs.js
mail/test/mozmill/runtest.py
--- a/mail/test/mozmill/migration-from-tb2/prefs.js
+++ b/mail/test/mozmill/migration-from-tb2/prefs.js
@@ -8,16 +8,17 @@
  * To make a manual change to preferences, you can visit the URL about:config
  * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
  */
 
 user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1273257684);
 user_pref("app.update.lastUpdateTime.background-update-timer", 1273257684);
 user_pref("app.update.lastUpdateTime.blocklist-background-update-timer", 1273257684);
 user_pref("extensions.checkCompatibility.nightly", false);
+user_pref("extensions.testpilot.lastversion", "1.0");
 user_pref("intl.charsetmenu.mailview.cache", "windows-1252, ISO-8859-1, UTF-8");
 user_pref("ldap_2.prefs_migrated", true);
 user_pref("ldap_2.servers.default.filename", "default.mab");
 user_pref("ldap_2.servers.default.replication.lastChangeNumber", 0);
 user_pref("ldap_2.servers.default.uri", "moz-abldapdirectory://default.mab");
 user_pref("ldap_2.servers.history.replication.lastChangeNumber", 0);
 user_pref("ldap_2.servers.pab.replication.lastChangeNumber", 0);
 user_pref("mail.account.account1.server", "server1");
--- a/mail/test/mozmill/runtest.py
+++ b/mail/test/mozmill/runtest.py
@@ -134,16 +134,18 @@ class ThunderTestProfile(mozrunner.Thund
         'mailnews.ui.junk.firstuse': False,
         # set the relative dirs properly
         'mail.root.none-rel' :  "[ProfD]Mail",
         'mail.root.pop3-rel' :  "[ProfD]Mail",
         # Do not allow check new mail to be set
         'mail.startup.enabledMailCheckOnce' :  True,
         # Disable compatibility checking
         'extensions.checkCompatibility.nightly': False,
+        # Disable test pilot new tab (this can be set to anything currently, just needs to be set).
+        'extensions.testpilot.lastversion': '1.0',
         # In case a developer is working on a laptop without a network
         # connection, don't detect offline mode; hence we'll still startup
         # online which is what mozmill currently requires. It'll also protect us
         # from any random network failures.
         'offline.autoDetect': False,
         # Don't load what's new or the remote start page - keep everything local
         # under our control.
         'mailnews.start_page_override.mstone' :  "ignore",