| 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 740e3a30a1cda60021b52aff0c06769c9ca9bddd..1815cb0bf99e76bc908389b17e3c30a7a1e4c7be 100644
|
| --- a/dart/tools/testing/dart/test_suite.dart
|
| +++ b/dart/tools/testing/dart/test_suite.dart
|
| @@ -1243,6 +1243,14 @@ class JUnitTestSuite implements TestSuite {
|
|
|
| class TestUtils {
|
| /**
|
| + * The libraries in this directory relies on finding various files
|
| + * relative to the 'test.dart' script in '.../dart/tools/test.dart'. If
|
| + * the main script using 'test_suite.dart' is not there, the main
|
| + * script must set this to '.../dart/tools/test.dart'.
|
| + */
|
| + static String testScriptPath = new Options().script;
|
| +
|
| + /**
|
| * Creates a directory using a [relativePath] to an existing
|
| * [base] directory if that [relativePath] does not already exist.
|
| */
|
| @@ -1381,7 +1389,7 @@ class TestUtils {
|
| }
|
|
|
| static Path dartDir() {
|
| - File scriptFile = new File(new Options().script);
|
| + File scriptFile = new File(testScriptPath);
|
| Path scriptPath = new Path.fromNative(scriptFile.fullPathSync());
|
| return scriptPath.directoryPath.directoryPath;
|
| }
|
|
|