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

Side by Side Diff: tools/testing/dart/test_options.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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("test_options_parser"); 5 #library("test_options_parser");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("dart:math"); 8 #import("dart:math");
9 #import("drt_updater.dart"); 9 #import("drt_updater.dart");
10 #import("test_suite.dart"); 10 #import("test_suite.dart");
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 ['--use-sdk'], 261 ['--use-sdk'],
262 [], 262 [],
263 false, 263 false,
264 'bool'), 264 'bool'),
265 new _TestOptionSpecification( 265 new _TestOptionSpecification(
266 'noBatch', 266 'noBatch',
267 'Do not run browser tests in batch mode', 267 'Do not run browser tests in batch mode',
268 ['-n', '--nobatch'], 268 ['-n', '--nobatch'],
269 [], 269 [],
270 false, 270 false,
271 'bool')]; 271 'bool'),
272 new _TestOptionSpecification(
273 'append_flaky_log',
274 'Do not delete the old flaky log but rather append to it.',
275 ['--append_flaky_log'],
276 [],
277 false,
278 'bool'
279 ),];
272 } 280 }
273 281
274 282
275 /** 283 /**
276 * Parse a list of strings as test options. 284 * Parse a list of strings as test options.
277 * 285 *
278 * Returns a list of configurations in which to run the 286 * Returns a list of configurations in which to run the
279 * tests. Configurations are maps mapping from option keys to 287 * tests. Configurations are maps mapping from option keys to
280 * values. When encountering the first non-option string, the rest 288 * values. When encountering the first non-option string, the rest
281 * of the arguments are stored in the returned Map under the 'rest' 289 * of the arguments are stored in the returned Map under the 'rest'
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 return option; 666 return option;
659 } 667 }
660 } 668 }
661 print('Unknown test option $name'); 669 print('Unknown test option $name');
662 exit(1); 670 exit(1);
663 } 671 }
664 672
665 673
666 List<_TestOptionSpecification> _options; 674 List<_TestOptionSpecification> _options;
667 } 675 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698