2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 """Chromium presubmit script for src/net.
8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
9 for more details on the presubmit API built into gcl.
12 def GetPreferredTrySlaves(project
, change
):
13 slaves
= ['win', 'linux', 'mac', 'win_sync', 'linux_sync', 'mac_sync']
14 # Changes that touch NSS files will likely need a corresponding OpenSSL edit.
15 # Conveniently, this one glob also matches _openssl.* changes too.
16 if any('nss' in f
.LocalPath() for f
in change
.AffectedFiles()):
17 slaves
.append('linux_redux')