-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=261108 Reviewed by Jonathan Bedard. webkitpy.test.finder.DirectoryTree.subpath used to consider everything except for absolute paths as subpaths, and as such everything was always found as a subtree of the first tree. This is clearly incorrect. Instead, require it actually start with the name of the package described by the tree. While we're at it, make `starting_directory` required everywhere: the only place where it was previously None was in finder_unittest, which isn't helpful. * Tools/Scripts/webkitpy/test/finder.py: (_DirectoryTree.__init__): (_DirectoryTree.subpath): (Finder.add_tree): * Tools/Scripts/webkitpy/test/finder_unittest.py: (FinderTest.setUp): (FinderTest.test_additional_system_paths): (FinderTest.test_default_names): (FinderTest.test_paths): * Tools/Scripts/webkitpy/test/main.py: (Tester.add_tree): Canonical link: https://commits.webkit.org/267685@main
- Loading branch information
Showing
3 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters