Bug 792029 - Make SpecialPowers available in crashtests. r=ted
authorJoel Maher <jmaher@mozilla.com>
Mon, 01 Oct 2012 08:50:10 -0400
changeset 108753 b16fb4f4ad481335da9d58e233dffc8f4ae35918
parent 108752 2d1a365a332043ac3cc4bbc0cc2c216610004ce8
child 108754 86cc9c289960e869d047a72372f060c919879c66
push idunknown
push userunknown
push dateunknown
reviewersted
bugs792029
milestone18.0a1
Bug 792029 - Make SpecialPowers available in crashtests. r=ted
layout/tools/reftest/runreftest.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -74,16 +74,23 @@ class RefTest(object):
       prefsFile.write(part)
     prefsFile.close()
 
     # install the reftest extension bits into the profile
     self.automation.installExtension(os.path.join(SCRIPT_DIRECTORY, "reftest"),
                                                   profileDir,
                                                   "reftest@mozilla.org")
 
+    # I would prefer to use "--install-extension reftest/specialpowers", but that requires tight coordination with
+    # release engineering and landing on multiple branches at once.
+    if manifest.endswith('crashtests.list'):
+      self.automation.installExtension(os.path.join(SCRIPT_DIRECTORY, "specialpowers"),
+                                                    profileDir,
+                                                    "special-powers@mozilla.org")
+
   def buildBrowserEnv(self, options, profileDir):
     browserEnv = self.automation.environment(xrePath = options.xrePath)
     browserEnv["XPCOM_DEBUG_BREAK"] = "stack"
 
     for v in options.environment:
       ix = v.find("=")
       if ix <= 0:
         print "Error: syntax error in --setenv=" + v