| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import subprocess | 7 import subprocess |
| 8 import sys | 8 import sys |
| 9 import time | 9 import time |
| 10 import urllib2 | 10 import urllib2 |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 # Remove all passes/no-data from the results to reduce noise and | 381 # Remove all passes/no-data from the results to reduce noise and |
| 382 # filesize. If a test passes every run, but takes > MIN_TIME to run, | 382 # filesize. If a test passes every run, but takes > MIN_TIME to run, |
| 383 # don't throw away the data. | 383 # don't throw away the data. |
| 384 if is_all_no_data or (is_all_pass and max_time <= self.MIN_TIME): | 384 if is_all_no_data or (is_all_pass and max_time <= self.MIN_TIME): |
| 385 del tests[test_name] | 385 del tests[test_name] |
| 386 | 386 |
| 387 def _IsResultsAllOfType(self, results, type): | 387 def _IsResultsAllOfType(self, results, type): |
| 388 """Returns whether all the results are of the given type | 388 """Returns whether all the results are of the given type |
| 389 (e.g. all passes).""" | 389 (e.g. all passes).""" |
| 390 return len(results) == 1 and results[0][1] == type | 390 return len(results) == 1 and results[0][1] == type |
| OLD | NEW |