Bug 1250616 - Update extension names in runrobocop.py, r=gbrown draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Tue, 08 Mar 2016 10:35:38 -0500
changeset 338185 a856e725340f98a4e811d1e3dbf264b867aaf85b
parent 338095 05c087337043dd8e71cc27bdb5b9d55fd00aaa26
child 515752 5f6f06fd627316a99e163903a5fb78e35b7462bb
push id12457
push userahalberstadt@mozilla.com
push dateTue, 08 Mar 2016 18:29:35 +0000
reviewersgbrown
bugs1250616
milestone48.0a1
Bug 1250616 - Update extension names in runrobocop.py, r=gbrown MozReview-Commit-ID: 5QAJiIL3pph
testing/mochitest/runrobocop.py
--- a/testing/mochitest/runrobocop.py
+++ b/testing/mochitest/runrobocop.py
@@ -221,24 +221,29 @@ class RobocopTestRunner(MochitestDesktop
         """
         self.options.extraPrefs.append('browser.search.suggest.enabled=true')
         self.options.extraPrefs.append('browser.search.suggest.prompted=true')
         self.options.extraPrefs.append('layout.css.devPixelsPerPx=1.0')
         self.options.extraPrefs.append('browser.chrome.dynamictoolbar=false')
         self.options.extraPrefs.append('browser.snippets.enabled=false')
         self.options.extraPrefs.append('browser.casting.enabled=true')
         self.options.extraPrefs.append('extensions.autoupdate.enabled=false')
+
+        self.options.extensionsToExclude.extend([
+            'mochikit@mozilla.org',
+            'worker-test@mozilla.org.xpi',
+            'workerbootstrap-test@mozilla.org.xpi',
+            'indexedDB-signed.xpi',
+        ])
+
         manifest = MochitestDesktop.buildProfile(self, self.options)
         self.localProfile = self.options.profilePath
         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', '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'))
         try:
             self.dm.pushDir(self.localProfile, self.remoteProfileCopy)
         except mozdevice.DMError:
             self.log.error(
                 "Automation Error: Unable to copy profile to device.")
             raise