media/libyuv/tools/valgrind-libyuv/tsan/PRESUBMIT.py

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial