| OLD | NEW |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from waterfall.extractor import Extractor | 5 from waterfall.extractor import Extractor |
| 6 from waterfall import extractor_util | 6 from waterfall import extractor_util |
| 7 from waterfall.failure_signal import FailureSignal | 7 from waterfall.failure_signal import FailureSignal |
| 8 | 8 |
| 9 | 9 |
| 10 class GeneralExtractor(Extractor): | 10 class GeneralExtractor(Extractor): |
| 11 """A general extractor. | 11 """A general extractor. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 'compile': CompileStepExtractor, | 72 'compile': CompileStepExtractor, |
| 73 'gn': CompileStepExtractor, | 73 'gn': CompileStepExtractor, |
| 74 'check_perms': CheckPermExtractor, | 74 'check_perms': CheckPermExtractor, |
| 75 } | 75 } |
| 76 | 76 |
| 77 | 77 |
| 78 def ExtractSignal(master_name, bot_name, step_name, test_name, failure_log): | 78 def ExtractSignal(master_name, bot_name, step_name, test_name, failure_log): |
| 79 # Fall back to a general-but-maybe-not-accurate extractor. | 79 # Fall back to a general-but-maybe-not-accurate extractor. |
| 80 extractor_class = EXTRACTORS.get(step_name, GeneralExtractor) | 80 extractor_class = EXTRACTORS.get(step_name, GeneralExtractor) |
| 81 return extractor_class().Extract( | 81 return extractor_class().Extract( |
| 82 master_name, bot_name, step_name, test_name, failure_log) | 82 failure_log, test_name, step_name, bot_name, master_name) |
| OLD | NEW |