blob: 58242bd984d517ec08e32924e5598176253c429e [file] [log] [blame]
Hangyu Kuangf047e7c2016-07-06 14:21:45 -07001# Copyright 2014 The LibYuv Project Authors. All rights reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import re
10import sys
11
12
13def GetDefaultTryConfigs(bots=None):
14 """Returns a list of ('bot', set(['tests']), optionally filtered by [bots].
15
16 For WebRTC purposes, we always return an empty list of tests, since we want
17 to run all tests by default on all our trybots.
18 """
19 return { 'tryserver.libyuv': dict((bot, []) for bot in bots)}
20
21
22# pylint: disable=W0613
23def GetPreferredTryMasters(project, change):
24 files = change.LocalPaths()
25 bots = [
26 'win',
27 'win_rel',
28 'win_x64_rel',
29 'win_x64_gn',
30 'win_x64_gn_rel',
31 'win_clang',
32 'win_clang_rel',
33 'win_x64_clang_rel',
34 'mac',
35 'mac_rel',
36 'mac_gn',
37 'mac_gn_rel',
38 'mac_asan',
39 'ios',
40 'ios_rel',
41 'ios_arm64',
42 'ios_arm64_rel',
43 'linux',
44 'linux_rel',
45 'linux_gn',
46 'linux_gn_rel',
47 'linux_memcheck',
48 'linux_tsan2',
49 'linux_asan',
50 'linux_msan',
51 'linux_ubsan',
52 'linux_ubsan_vptr',
53 'android',
54 'android_rel',
55 'android_clang',
56 'android_arm64',
57 'android_mips',
58 'android_x64',
59 'android_x86',
60 'android_gn',
61 'android_gn_rel',
62 ]
63 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files):
64 return {}
65 return GetDefaultTryConfigs(bots)