| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 5 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 6 for more details on the presubmit API built into gcl. | 6 for more details on the presubmit API built into depot_tools. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 | 9 |
| 10 def CheckChange(input_api, output_api): | 10 def CheckChange(input_api, output_api): |
| 11 """Checks the DrMemory suppression files for bad suppressions.""" | 11 """Checks the DrMemory suppression files for bad suppressions.""" |
| 12 | 12 |
| 13 # TODO(timurrrr): find out how to do relative imports | 13 # TODO(timurrrr): find out how to do relative imports |
| 14 # and remove this ugly hack. Also, the CheckChange function won't be needed. | 14 # and remove this ugly hack. Also, the CheckChange function won't be needed. |
| 15 tools_vg_path = input_api.os_path.join(input_api.PresubmitLocalPath(), '..') | 15 tools_vg_path = input_api.os_path.join(input_api.PresubmitLocalPath(), '..') |
| 16 import sys | 16 import sys |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 def CheckChangeOnCommit(input_api, output_api): | 30 def CheckChangeOnCommit(input_api, output_api): |
| 31 return CheckChange(input_api, output_api) | 31 return CheckChange(input_api, output_api) |
| 32 | 32 |
| 33 | 33 |
| 34 def GetPreferredTryMasters(project, change): | 34 def GetPreferredTryMasters(project, change): |
| 35 return { | 35 return { |
| 36 'tryserver.chromium.win': { | 36 'tryserver.chromium.win': { |
| 37 'win_drmemory': set(['defaulttests']), | 37 'win_drmemory': set(['defaulttests']), |
| 38 } | 38 } |
| 39 } | 39 } |
| OLD | NEW |