summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/unused_suppressions.py
blob: 0f336f136d09e98f6932db720dc0f032dc2b6b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import sys
import urllib2

import suppressions


def main():
  supp = suppressions.GetSuppressions()

  all_supps = []
  for supps in supp.values():
    all_supps += [s.description for s in supps]
  sys.stdout.write(urllib2.urlopen(
      'http://chromium-build-logs.appspot.com/unused_suppressions',
      '\n'.join(all_supps)).read())
  return 0

if __name__ == "__main__":
  sys.exit(main())