Bug 690060 - Make runreftests.py append "crashtest.list" to the test path when only a crashtest directory is specified; r=ted
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 29 Sep 2011 10:58:13 -0400
changeset 77835 fc7e928eaeaef372018f9cd045d45eeeeda93c0d
parent 77834 f96e4ff817a788d80e10b7b8d83c5da9e7f9b41f
child 77836 9989f9ef7b908b706316327b4acd40bc3b9aa9f7
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersted
bugs690060
milestone10.0a1
Bug 690060 - Make runreftests.py append "crashtest.list" to the test path when only a crashtest directory is specified; r=ted
layout/tools/reftest/runreftest.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -63,16 +63,20 @@ class RefTest(object):
 
   def getManifestPath(self, path):
     "Get the path of the manifest, and for remote testing this function is subclassed to point to remote manifest"
     path = self.getFullPath(path)
     if os.path.isdir(path):
       defaultManifestPath = os.path.join(path, 'reftest.list')
       if os.path.exists(defaultManifestPath):
         path = defaultManifestPath
+      else:
+        defaultManifestPath = os.path.join(path, 'crashtests.list')
+        if os.path.exists(defaultManifestPath):
+          path = defaultManifestPath
     return path
 
   def createReftestProfile(self, options, profileDir, server='localhost'):
     "Sets up a profile for reftest."
 
     self.automation.setupPermissionsDatabase(profileDir,
       {'allowXULXBL': [(server, True), ('<file>', True)]})