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

Side by Side Diff: tools/testing/dart/test_options.dart

Issue 13079005: better warning in tools/testing/dart/test_options (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 case 'new_analyzer': 445 case 'new_analyzer':
446 validRuntimes = const ['none']; 446 validRuntimes = const ['none'];
447 break; 447 break;
448 case 'none': 448 case 'none':
449 case 'dart2dart': 449 case 'dart2dart':
450 validRuntimes = const ['vm', 'drt', 'dartium']; 450 validRuntimes = const ['vm', 'drt', 'dartium'];
451 break; 451 break;
452 } 452 }
453 if (!validRuntimes.contains(config['runtime'])) { 453 if (!validRuntimes.contains(config['runtime'])) {
454 isValid = false; 454 isValid = false;
455 print("Warning: combination of ${config['compiler']} and " 455 print("Warning: combination of compiler '${config['compiler']}' and "
456 "${config['runtime']} is invalid. Skipping this combination."); 456 "runtime '${config['runtime']}' is invalid. "
457 "Skipping this combination.");
kustermann 2013/03/26 08:27:26 Indentation.
kevmoo-old 2013/03/26 13:16:38 Explain...
kustermann 2013/03/26 13:43:07 AFAIK we indent the two following lines to the sam
457 } 458 }
458 if ((config['runtime'] == 'ie9' || config['runtime'] == 'ie10') && 459 if ((config['runtime'] == 'ie9' || config['runtime'] == 'ie10') &&
459 Platform.operatingSystem != 'windows') { 460 Platform.operatingSystem != 'windows') {
460 isValid = false; 461 isValid = false;
461 print("Warning cannot run Internet Explorer on non-Windows operating" 462 print("Warning cannot run Internet Explorer on non-Windows operating"
462 " system."); 463 " system.");
463 } 464 }
464 if (config['shard'] < 1 || config['shard'] > config['shards']) { 465 if (config['shard'] < 1 || config['shard'] > config['shards']) {
465 isValid = false; 466 isValid = false;
466 print("Error: shard index is ${config['shard']} out of " 467 print("Error: shard index is ${config['shard']} out of "
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 return option; 699 return option;
699 } 700 }
700 } 701 }
701 print('Unknown test option $name'); 702 print('Unknown test option $name');
702 exit(1); 703 exit(1);
703 } 704 }
704 705
705 706
706 List<_TestOptionSpecification> _options; 707 List<_TestOptionSpecification> _options;
707 } 708 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698