Bug 1297049 - Include tests with query string and hash string when specifying test path. r?dbaron draft
authorXidorn Quan <xidorn+moz@upsuper.org>
Mon, 22 Aug 2016 22:17:22 +1000
changeset 403913 29a63eebb06c7bbf4fe26ce9198167621243edea
parent 403911 c470dc3a0a8234215dea896b664a129a186b7440
child 529033 1e21a6ceec4c2cef6c2acad37ee22d0560134086
push id27047
push userxquan@mozilla.com
push dateMon, 22 Aug 2016 12:25:55 +0000
reviewersdbaron
bugs1297049
milestone51.0a1
Bug 1297049 - Include tests with query string and hash string when specifying test path. r?dbaron MozReview-Commit-ID: 27x0vTs1aDa
layout/tools/reftest/runreftest.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -169,17 +169,17 @@ class ReftestResolver(object):
             while not os.path.exists(os.path.join(dirname, default_manifest)):
                 dirname, suffix = os.path.split(dirname)
                 pathname = os.path.join(suffix, pathname)
                 if os.path.dirname(dirname) == dirname:
                     found = False
                     break
             if found:
                 rv = [(os.path.join(dirname, default_manifest),
-                       r".*(?:/|\\)%s$" % pathname)]
+                       r".*(?:/|\\)%s(?:[#?].*)?$" % pathname)]
 
         return rv
 
     def absManifestPath(self, path):
         return os.path.normpath(os.path.abspath(path))
 
     def manifestURL(self, options, path):
         return "file://%s" % path