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 77860 ea0d2b03cfcf7547d6c8acbc360e47595eb90a66
parent 77859 ac24c47e2885476593985c88a503e4f075602582
child 77861 611807062ab55a9dee7e202a8ff33b444e7614b4
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)]})