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

Side by Side Diff: tools/test.dart

Issue 11364129: Added support for logging the output of failed flaky tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/test-runtime.dart » ('j') | tools/test-runtime.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /** 6 /**
7 * This file is the entrypoint of the dart test suite. This suite is used 7 * This file is the entrypoint of the dart test suite. This suite is used
8 * to test: 8 * to test:
9 * 9 *
10 * 1. the dart vm 10 * 1. the dart vm
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Extract global options from first configuration. 75 // Extract global options from first configuration.
76 var firstConf = configurations[0]; 76 var firstConf = configurations[0];
77 Map<String, RegExp> selectors = firstConf['selectors']; 77 Map<String, RegExp> selectors = firstConf['selectors'];
78 var maxProcesses = firstConf['tasks']; 78 var maxProcesses = firstConf['tasks'];
79 var progressIndicator = firstConf['progress']; 79 var progressIndicator = firstConf['progress'];
80 BuildbotProgressIndicator.stepName = firstConf['step_name']; 80 BuildbotProgressIndicator.stepName = firstConf['step_name'];
81 var verbose = firstConf['verbose']; 81 var verbose = firstConf['verbose'];
82 var printTiming = firstConf['time']; 82 var printTiming = firstConf['time'];
83 var listTests = firstConf['list']; 83 var listTests = firstConf['list'];
84
85 if (!firstConf['append_flaky_log']) {
86 var file = new File(TestUtils.flakyFileName());
87 if (file.existsSync()) {
88 file.deleteSync();
89 }
90 }
84 91
85 // Print the configurations being run by this execution of 92 // Print the configurations being run by this execution of
86 // test.dart. However, don't do it if the silent progress indicator 93 // test.dart. However, don't do it if the silent progress indicator
87 // is used. This is only needed because of the junit tests. 94 // is used. This is only needed because of the junit tests.
88 if (progressIndicator != 'silent') { 95 if (progressIndicator != 'silent') {
89 List output_words = configurations.length > 1 ? 96 List output_words = configurations.length > 1 ?
90 ['Test configurations:'] : ['Test configuration:']; 97 ['Test configurations:'] : ['Test configuration:'];
91 for (Map conf in configurations) { 98 for (Map conf in configurations) {
92 List settings = 99 List settings =
93 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); 100 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Start process queue. 145 // Start process queue.
139 new ProcessQueue(maxProcesses, 146 new ProcessQueue(maxProcesses,
140 progressIndicator, 147 progressIndicator,
141 startTime, 148 startTime,
142 printTiming, 149 printTiming,
143 enqueueConfiguration, 150 enqueueConfiguration,
144 () => terminateHttpServer(), 151 () => terminateHttpServer(),
145 verbose, 152 verbose,
146 listTests); 153 listTests);
147 } 154 }
OLDNEW
« no previous file with comments | « no previous file | tools/test-runtime.dart » ('j') | tools/test-runtime.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698