Chromium Code Reviews| Index: tools/testrunner/local/execution.py |
| diff --git a/tools/testrunner/local/execution.py b/tools/testrunner/local/execution.py |
| index 4dc62c2e90066032c2dd3412987a729786c14b9c..80a5989be2f255a672b872adca74b284ad2ef49c 100644 |
| --- a/tools/testrunner/local/execution.py |
| +++ b/tools/testrunner/local/execution.py |
| @@ -94,7 +94,9 @@ class Runner(object): |
| # while the queue is filled. |
| queue = [] |
| queued_exception = None |
| - for test in sorted(self.tests, key=lambda t: t.duration, reverse=True): |
| + if not self.context.no_sorting: |
| + self.tests = sorted(self.tests, key=lambda t: t.duration, reverse=True) |
|
Michael Achenbach
2014/05/28 11:08:32
Not totally happy with replacing generators with c
Jakob Kummerow
2014/05/28 11:12:16
Right, should probably use self.tests.sort(key=...
Michael Starzinger
2014/05/28 11:24:56
Will upload a follow-up CL to address this.
|
| + for test in self.tests: |
| assert test.id >= 0 |
| test_map[test.id] = test |
| try: |