Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #!/usr/bin/env python |
michael@0 | 2 | # Copyright (c) 2012 The LibYuv Project Authors. All rights reserved. |
michael@0 | 3 | # |
michael@0 | 4 | # Use of this source code is governed by a BSD-style license |
michael@0 | 5 | # that can be found in the LICENSE file in the root of the source |
michael@0 | 6 | # tree. An additional intellectual property rights grant can be found |
michael@0 | 7 | # in the file PATENTS. All contributing project authors may |
michael@0 | 8 | # be found in the AUTHORS file in the root of the source tree. |
michael@0 | 9 | |
michael@0 | 10 | import os |
michael@0 | 11 | import re |
michael@0 | 12 | import sys |
michael@0 | 13 | |
michael@0 | 14 | """ |
michael@0 | 15 | Copied from Chrome's src/tools/valgrind/tsan/PRESUBMIT.py |
michael@0 | 16 | |
michael@0 | 17 | See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
michael@0 | 18 | for more details on the presubmit API built into gcl. |
michael@0 | 19 | """ |
michael@0 | 20 | |
michael@0 | 21 | def CheckChange(input_api, output_api): |
michael@0 | 22 | """Checks the TSan suppressions files for bad suppressions.""" |
michael@0 | 23 | |
michael@0 | 24 | # Add the path to the Chrome valgrind dir to the import path: |
michael@0 | 25 | tools_vg_path = os.path.join(input_api.PresubmitLocalPath(), '..', '..', |
michael@0 | 26 | 'valgrind') |
michael@0 | 27 | sys.path.append(tools_vg_path) |
michael@0 | 28 | import suppressions |
michael@0 | 29 | |
michael@0 | 30 | return suppressions.PresubmitCheck(input_api, output_api) |
michael@0 | 31 | |
michael@0 | 32 | def CheckChangeOnUpload(input_api, output_api): |
michael@0 | 33 | return CheckChange(input_api, output_api) |
michael@0 | 34 | |
michael@0 | 35 | def CheckChangeOnCommit(input_api, output_api): |
michael@0 | 36 | return CheckChange(input_api, output_api) |
michael@0 | 37 | |
michael@0 | 38 | def GetPreferredTrySlaves(): |
michael@0 | 39 | # We don't have any tsan slaves yet, so there's no use for this method. |
michael@0 | 40 | # When we have, the slave name(s) should be put into this list. |
michael@0 | 41 | return [] |