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

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

Issue 10041031: Fix issue 2625. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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) 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 541
542 /** 542 /**
543 * Called when all commands are executed. [exitCode] is 0 if all command 543 * Called when all commands are executed. [exitCode] is 0 if all command
544 * succeded, otherwise it will have the exit code of the first failing 544 * succeded, otherwise it will have the exit code of the first failing
545 * command. 545 * command.
546 */ 546 */
547 void testComplete(int exitCode) { 547 void testComplete(int exitCode) {
548 new TestOutput.fromCase(testCase, exitCode, timedOut, stdout, 548 new TestOutput.fromCase(testCase, exitCode, timedOut, stdout,
549 stderr, new Date.now().difference(startTime)); 549 stderr, new Date.now().difference(startTime));
550 timeoutTimer.cancel(); 550 timeoutTimer.cancel();
551 if (testCase.output.unexpectedOutput && testCase.configuration['verbose']) { 551 if (testCase.output.unexpectedOutput && processQueue._verbose) {
552 print(testCase.displayName); 552 print(testCase.displayName);
553 for (var line in testCase.output.stderr) print(line); 553 for (var line in testCase.output.stderr) print(line);
554 for (var line in testCase.output.stdout) print(line); 554 for (var line in testCase.output.stdout) print(line);
555 } 555 }
556 if (allowRetries && testCase.usesWebDriver 556 if (allowRetries && testCase.usesWebDriver
557 && testCase.output.unexpectedOutput 557 && testCase.output.unexpectedOutput
558 && testCase.dynamic.numRetries > 0) { 558 && testCase.dynamic.numRetries > 0) {
559 // Selenium tests can be flaky. Try rerunning. 559 // Selenium tests can be flaky. Try rerunning.
560 testCase.output.requestRetry = true; 560 testCase.output.requestRetry = true;
561 } 561 }
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 // the developer doesn't waste his or her time trying to fix a bunch of 1160 // the developer doesn't waste his or her time trying to fix a bunch of
1161 // tests that appear to be broken but were actually just flakes that 1161 // tests that appear to be broken but were actually just flakes that
1162 // didn't get retried because there had already been one failure. 1162 // didn't get retried because there had already been one failure.
1163 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1163 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1164 new RunningProcess(test, allowRetry, this).start(); 1164 new RunningProcess(test, allowRetry, this).start();
1165 } 1165 }
1166 _numProcesses++; 1166 _numProcesses++;
1167 } 1167 }
1168 } 1168 }
1169 } 1169 }
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