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

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

Issue 11411150: Make the PackageRoot test file option relative to the test file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 | « dart/tests/standalone/package/package_isolate_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_suite.dart
diff --git a/dart/tools/testing/dart/test_suite.dart b/dart/tools/testing/dart/test_suite.dart
index e02cffb3c19e6ff7b43d74226576a330723f0bcb..5d87e470b3cde9fe756ce342659076219216465e 100644
--- a/dart/tools/testing/dart/test_suite.dart
+++ b/dart/tools/testing/dart/test_suite.dart
@@ -1262,6 +1262,10 @@ class StandardTestSuite extends TestSuite {
'More than one "// PackageRoot=" line in test $filePath');
}
packageRoot = match[1];
+ if (packageRoot != 'none') {
+ // PackageRoot=none means that no package-root option should be given.
+ packageRoot = '${filePath.directoryPath.join(new Path(packageRoot))}';
+ }
}
matches = staticCleanRegExp.allMatches(contents);
« no previous file with comments | « dart/tests/standalone/package/package_isolate_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698