Bug 1370936 - Use platform agnostic check for an absolute path, r=ato draft
authorJames Graham <james@hoppipolla.co.uk>
Fri, 16 Jun 2017 10:32:37 +0100
changeset 595539 0d24f744db6fa7e97f8d144b446015789f6b9e85
parent 595538 2ed124fd69da6e376d04e27f3b6ca4b7fc12c19b
child 595540 5492fff7041db7107a51330d414e24cdf486368b
push id64345
push userbmo:james@hoppipolla.co.uk
push dateFri, 16 Jun 2017 10:22:22 +0000
reviewersato
bugs1370936
milestone56.0a1
Bug 1370936 - Use platform agnostic check for an absolute path, r=ato MozReview-Commit-ID: 9G4yzsSBciD
testing/web-platform/tests/tools/wptrunner/wptrunner/update/update.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/update/update.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/update/update.py
@@ -25,17 +25,17 @@ class LoadConfig(Step):
         state.sync = {"remote_url": state.kwargs["remote_url"],
                       "branch": state.kwargs["branch"],
                       "path": state.kwargs["sync_path"]}
 
         state.paths = state.kwargs["test_paths"]
         state.tests_path = state.paths["/"]["tests_path"]
         state.metadata_path = state.paths["/"]["metadata_path"]
 
-        assert state.tests_path.startswith("/")
+        assert os.path.isabs(state.tests_path)
 
 
 class LoadTrees(Step):
     """Step for creating a Tree for the local copy and a GitTree for the
     upstream sync."""
 
     provides = ["local_tree", "sync_tree"]