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

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

Issue 11884029: Upload new Dart binaries and re-enable unit tests for test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change Futures.wait to Future.wait in two test script files. Created 7 years, 11 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 | « tools/testing/dart/multitest.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | 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 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 } 1657 }
1658 1658
1659 Future _terminateBatchRunners() { 1659 Future _terminateBatchRunners() {
1660 var futures = new List(); 1660 var futures = new List();
1661 for (var runners in _batchProcesses.values) { 1661 for (var runners in _batchProcesses.values) {
1662 for (var runner in runners) { 1662 for (var runner in runners) {
1663 futures.add(runner.terminate()); 1663 futures.add(runner.terminate());
1664 } 1664 }
1665 } 1665 }
1666 // Change to Future.wait when updating binaries. 1666 // Change to Future.wait when updating binaries.
1667 return Futures.wait(futures); 1667 return Future.wait(futures);
1668 } 1668 }
1669 1669
1670 BatchRunnerProcess _getBatchRunner(TestCase test) { 1670 BatchRunnerProcess _getBatchRunner(TestCase test) {
1671 // Start batch processes if needed 1671 // Start batch processes if needed
1672 var compiler = test.configuration['compiler']; 1672 var compiler = test.configuration['compiler'];
1673 var runners = _batchProcesses[compiler]; 1673 var runners = _batchProcesses[compiler];
1674 if (runners == null) { 1674 if (runners == null) {
1675 runners = new List<BatchRunnerProcess>(_maxProcesses); 1675 runners = new List<BatchRunnerProcess>(_maxProcesses);
1676 for (int i = 0; i < _maxProcesses; i++) { 1676 for (int i = 0; i < _maxProcesses; i++) {
1677 runners[i] = new BatchRunnerProcess(test); 1677 runners[i] = new BatchRunnerProcess(test);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 // the developer doesn't waste his or her time trying to fix a bunch of 1748 // the developer doesn't waste his or her time trying to fix a bunch of
1749 // tests that appear to be broken but were actually just flakes that 1749 // tests that appear to be broken but were actually just flakes that
1750 // didn't get retried because there had already been one failure. 1750 // didn't get retried because there had already been one failure.
1751 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1751 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1752 new RunningProcess(test, allowRetry, this).start(); 1752 new RunningProcess(test, allowRetry, this).start();
1753 } 1753 }
1754 _numProcesses++; 1754 _numProcesses++;
1755 } 1755 }
1756 } 1756 }
1757 } 1757 }
OLDNEW
« no previous file with comments | « tools/testing/dart/multitest.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698