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

Unified Diff: dart/tools/test.dart

Issue 95603002: Add .test-outcome.log support to test.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | dart/tools/testing/dart/test_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/test.dart
diff --git a/dart/tools/test.dart b/dart/tools/test.dart
index c96084db1aeca522361fa7e67ba5c1f1ef7d1561..b7afb77fb9fe5ae5592350d774100bfc733ede2c 100755
--- a/dart/tools/test.dart
+++ b/dart/tools/test.dart
@@ -99,9 +99,12 @@ void testConfigurations(List<Map> configurations) {
}
if (!firstConf['append_logs']) {
- var file = new File(TestUtils.flakyFileName());
- if (file.existsSync()) {
- file.deleteSync();
+ var files = [new File(TestUtils.flakyFileName()),
+ new File(TestUtils.testOutcomeFileName())];
+ for (var file in files) {
+ if (file.existsSync()) {
+ file.deleteSync();
+ }
}
}
@@ -240,6 +243,9 @@ void testConfigurations(List<Map> configurations) {
eventListener.add(new SkippedCompilationsPrinter());
eventListener.add(new LeftOverTempDirPrinter());
}
+ if (firstConf['write_test_outcome_log']) {
+ eventListener.add(new TestOutcomeLogWriter());
+ }
eventListener.add(new ExitCodeSetter());
void startProcessQueue() {
« no previous file with comments | « no previous file | dart/tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698