Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1547)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 2795793003: Make run-webkit-tests work with virtual parent LayoutTest directories (Closed)
Patch Set: update TOTAL_TESTS Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py
index 609f39ceb6e32150ab1eef0b67a8a11d16da63d8..5fb2fdf1e754e0ca270d414d4ee7768337a0eb84 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py
@@ -1506,7 +1506,7 @@ class Port(object):
def _virtual_tests_matching_paths(self, paths, suites):
tests = []
for suite in suites:
- if any(p.startswith(suite.name) for p in paths):
+ if any(p.startswith(suite.name) for p in paths) or any(suite.name.startswith(p) for p in paths):
qyearsley 2017/04/05 22:47:07 This is a bit difficult to think about without thi
Gleb Lanbin 2017/04/06 17:27:32 Acknowledged.
self._populate_virtual_suite(suite)
for test in suite.tests:
if any(test.startswith(p) for p in paths):

Powered by Google App Engine
This is Rietveld 408576698