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

Unified Diff: tools/testing/dart/test_options.dart

Issue 8799009: Add support for client/dartc compilation only tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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: tools/testing/dart/test_options.dart
diff --git a/tools/testing/dart/test_options.dart b/tools/testing/dart/test_options.dart
index 5b7acdf5e392a1887b7e3d7bcc97895b94756aa6..d75ee537fdbc4003110c1d633527421a96e70988 100644
--- a/tools/testing/dart/test_options.dart
+++ b/tools/testing/dart/test_options.dart
@@ -248,9 +248,11 @@ class TestOptionsParser {
if (slashLocation != -1) {
suite = pattern.substring(0, slashLocation);
pattern = pattern.substring(slashLocation + 1);
+ pattern = pattern.replaceAll('*', '.*');
+ pattern = pattern.replaceAll('/', '.*');
+ } else {
+ pattern = ".*";
}
- pattern = pattern.replaceAll('*', '.*');
- pattern = pattern.replaceAll('/', '.*');
if (selectorMap.containsKey(suite)) {
print("Warning: selector '$suite/$pattern' overrides " +
"previous selector for suite '$suite'");

Powered by Google App Engine
This is Rietveld 408576698