Example #1
0
def CheckChange(input_api, output_api):
  """Checks the TSan suppressions files for bad suppressions."""

  # Add the path to the Chrome valgrind dir to the import path:
  tools_vg_path = os.path.join(input_api.PresubmitLocalPath(), '..', '..',
                               'valgrind')
  sys.path.append(tools_vg_path)
  import suppressions

  return suppressions.PresubmitCheck(input_api, output_api)
def CheckChange(input_api, output_api):
    """Checks the TSan suppressions files for bad suppressions."""

    # TODO(timurrrr): find out how to do relative imports
    # and remove this ugly hack. Also, the CheckChange function won't be needed.
    tools_vg_path = os.path.join(input_api.PresubmitLocalPath(), '..')
    sys.path.append(tools_vg_path)
    import suppressions

    return suppressions.PresubmitCheck(input_api, output_api)
Example #3
0
def CheckChange(input_api, output_api):
  """Checks the DrMemory suppression files for bad suppressions."""

  # TODO(timurrrr): find out how to do relative imports
  # and remove this ugly hack. Also, the CheckChange function won't be needed.
  tools_vg_path = input_api.os_path.join(input_api.PresubmitLocalPath(), '..')
  import sys
  old_path = sys.path
  try:
    sys.path = sys.path + [tools_vg_path]
    import suppressions
    return suppressions.PresubmitCheck(input_api, output_api)
  finally:
    sys.path = old_path
Example #4
0
def CheckChange(input_api, output_api):
    """Checks the DrMemory suppression files for bad suppressions."""

    # Add the path to the Chrome valgrind dir to the import path:
    tools_vg_path = os.path.join(input_api.PresubmitLocalPath(), '..', '..',
                                 'valgrind')
    import sys
    old_path = sys.path
    try:
        sys.path = sys.path + [tools_vg_path]
        import suppressions
        return suppressions.PresubmitCheck(input_api, output_api)
    finally:
        sys.path = old_path