Bug 1252868 - Do not install superfluous addons for Android tests; r=jmaher

This commit is contained in:
Geoff Brown 2016-03-02 09:23:42 -07:00
parent 30f8bb9b53
commit c590774b39
2 changed files with 5 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class RobocopTestRunner(MochitestDesktop):
self.log.debug("Profile created at %s" % self.localProfile)
# some files are not needed for robocop; save time by not pushing
shutil.rmtree(os.path.join(self.localProfile, 'webapps'))
desktop_extensions = ['mochikit@mozilla.org', 'worker-test@mozilla.org', 'workerbootstrap-test@mozilla.org']
desktop_extensions = ['mochikit@mozilla.org', 'worker-test@mozilla.org', 'workerbootstrap-test@mozilla.org', 'indexedDB-test@mozilla.org']
for ext in desktop_extensions:
shutil.rmtree(os.path.join(self.localProfile, 'extensions', 'staged', ext))
os.remove(os.path.join(self.localProfile, 'userChrome.css'))

View File

@ -311,6 +311,10 @@ def run_test_harness(options):
raise ValueError("Invalid options specified, use --help for a list of valid options")
options.runByDir = False
# roboextender is used by mochitest-chrome tests like test_java_addons.html,
# but not by any plain mochitests
if not options.chrome:
options.extensionsToExclude.append('roboextender@mozilla.org')
dm = options.dm
auto.setDeviceManager(dm)