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

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

Issue 11299206: Call dart2js directly from sdk/bin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed build changes 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/sdk/bin/dart2js_developer.bat ('k') | dart/tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_runner.dart
diff --git a/dart/tools/testing/dart/test_runner.dart b/dart/tools/testing/dart/test_runner.dart
index 30f52598461eb611daf9e3f169de496a73753d49..4c7498d849336a91554987b3db40bf4456f8bd1a 100644
--- a/dart/tools/testing/dart/test_runner.dart
+++ b/dart/tools/testing/dart/test_runner.dart
@@ -785,8 +785,13 @@ class RunningProcess {
void processExitHandler(int returnCode) {
commandCompleteHandler(command, returnCode);
}
-
- Future processFuture = Process.start(command.executable, command.arguments);
+ ProcessOptions options = new ProcessOptions();
+ options.environment = new Map<String, String>.from(Platform.environment);
+ options.environment['DART_CONFIGURATION'] =
+ TestUtils.configurationDir(testCase.configuration);
+ Future processFuture = Process.start(command.executable,
+ command.arguments,
+ options);
processFuture.then((Process p) {
process = p;
process.onExit = processExitHandler;
« no previous file with comments | « dart/sdk/bin/dart2js_developer.bat ('k') | dart/tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698