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

Unified Diff: dart/tools/testing/test_configuration.py

Issue 8329026: Filter-out dart:... sources (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/test_configuration.py
diff --git a/dart/tools/testing/test_configuration.py b/dart/tools/testing/test_configuration.py
index 0daa16165101218f1218bae6b9a52e820d205935..9f21f4c931a3047c2dd7ad44444d3ec0e260ae18 100644
--- a/dart/tools/testing/test_configuration.py
+++ b/dart/tools/testing/test_configuration.py
@@ -136,7 +136,9 @@ class StandardTestConfiguration(test.TestConfiguration):
for line in lines:
m = re.match("#(source|import)\(['\"](.*)['\"]\);", line)
if m:
- referenced_files.append(m.group(2))
+ file_name = m.group(2)
+ if not file_name.startswith('dart:'):
+ referenced_files.append(file_name)
return referenced_files
def SplitMultiTest(self, test_path, filename):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698