Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 719 time, | 719 time, |
| 720 compilationSkipped) { | 720 compilationSkipped) { |
| 721 _failedBecauseOfMissingXDisplay = _didFailBecauseOfMissingXDisplay(); | 721 _failedBecauseOfMissingXDisplay = _didFailBecauseOfMissingXDisplay(); |
| 722 if (_failedBecauseOfMissingXDisplay) { | 722 if (_failedBecauseOfMissingXDisplay) { |
| 723 DebugLogger.warning("Warning: Test failure because of missing XDisplay"); | 723 DebugLogger.warning("Warning: Test failure because of missing XDisplay"); |
| 724 // If we get the X server error, or DRT crashes with a core dump, retry | 724 // If we get the X server error, or DRT crashes with a core dump, retry |
| 725 // the test. | 725 // the test. |
| 726 } | 726 } |
| 727 } | 727 } |
| 728 | 728 |
| 729 bool didFail(TestCase testCase) { | 729 bool get canRunDependendCommands { |
| 730 // We cannot rely on the exit code of content_shell as a method to determine | |
| 731 // if we were successful or not. | |
| 732 return super.canRunDependendCommands && !didFail(null); | |
|
kustermann
2013/08/05 10:23:44
If this returns 'false' and command.numRetries > 0
| |
| 733 } | |
| 734 | |
| 735 bool didFail(TestCase _) { | |
| 730 if (_failedBecauseOfMissingXDisplay) { | 736 if (_failedBecauseOfMissingXDisplay) { |
| 731 return true; | 737 return true; |
| 732 } | 738 } |
| 733 | 739 |
| 734 if (command.expectedOutputFile != null) { | 740 if (command.expectedOutputFile != null) { |
| 735 // We are either doing a pixel test or a layout test with content shell | 741 // We are either doing a pixel test or a layout test with content shell |
| 736 return _failedBecauseOfUnexpectedDRTOutput; | 742 return _failedBecauseOfUnexpectedDRTOutput; |
| 737 } | 743 } |
| 738 return _browserTestFailure; | 744 return _browserTestFailure; |
| 739 } | 745 } |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2057 } | 2063 } |
| 2058 } | 2064 } |
| 2059 | 2065 |
| 2060 void eventAllTestsDone() { | 2066 void eventAllTestsDone() { |
| 2061 for (var listener in _eventListener) { | 2067 for (var listener in _eventListener) { |
| 2062 listener.allDone(); | 2068 listener.allDone(); |
| 2063 } | 2069 } |
| 2064 _allDone(); | 2070 _allDone(); |
| 2065 } | 2071 } |
| 2066 } | 2072 } |
| OLD | NEW |