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

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

Issue 10584014: Change test scripts to use Path library in most places, instead of strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Take out changes to Path as separate CL. Created 8 years, 6 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
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 /** 5 /**
6 * Classes and methods for executing tests. 6 * Classes and methods for executing tests.
7 * 7 *
8 * This module includes: 8 * This module includes:
9 * - Managing parallel execution of tests, including timeout checks. 9 * - Managing parallel execution of tests, including timeout checks.
10 * - Evaluating the output of each test as pass/fail/crash/timeout. 10 * - Evaluating the output of each test as pass/fail/crash/timeout.
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return false; 396 return false;
397 } 397 }
398 398
399 bool _didStandardTestFail(List errors, List staticWarnings) { 399 bool _didStandardTestFail(List errors, List staticWarnings) {
400 bool hasFatalTypeErrors = false; 400 bool hasFatalTypeErrors = false;
401 int numStaticTypeAnnotations = 0; 401 int numStaticTypeAnnotations = 0;
402 int numCompileTimeAnnotations = 0; 402 int numCompileTimeAnnotations = 0;
403 var isStaticClean = false; 403 var isStaticClean = false;
404 if (testCase.info != null) { 404 if (testCase.info != null) {
405 var optionsFromFile = testCase.info.optionsFromFile; 405 var optionsFromFile = testCase.info.optionsFromFile;
406 hasFatalTypeErrors = optionsFromFile['hasFatalTypeErrors']; 406 hasFatalTypeErrors = testCase.info.hasFatalTypeErrors;
407 for (Command c in testCase.commands) { 407 for (Command c in testCase.commands) {
408 for (String arg in c.arguments) { 408 for (String arg in c.arguments) {
409 if (arg == '--fatal-type-errors') { 409 if (arg == '--fatal-type-errors') {
410 hasFatalTypeErrors = true; 410 hasFatalTypeErrors = true;
411 break; 411 break;
412 } 412 }
413 } 413 }
414 } 414 }
415 numStaticTypeAnnotations = optionsFromFile['numStaticTypeAnnotations']; 415 numStaticTypeAnnotations = optionsFromFile['numStaticTypeAnnotations'];
416 numCompileTimeAnnotations = optionsFromFile['numCompileTimeAnnotations']; 416 numCompileTimeAnnotations = optionsFromFile['numCompileTimeAnnotations'];
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 // the developer doesn't waste his or her time trying to fix a bunch of 1179 // the developer doesn't waste his or her time trying to fix a bunch of
1180 // tests that appear to be broken but were actually just flakes that 1180 // tests that appear to be broken but were actually just flakes that
1181 // didn't get retried because there had already been one failure. 1181 // didn't get retried because there had already been one failure.
1182 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1182 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1183 new RunningProcess(test, allowRetry, this).start(); 1183 new RunningProcess(test, allowRetry, this).start();
1184 } 1184 }
1185 _numProcesses++; 1185 _numProcesses++;
1186 } 1186 }
1187 } 1187 }
1188 } 1188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698