Open NaCl IRT file only once at startup
[chromium-blink-merge.git] / net / PRESUBMIT.py
blob5b607c5705aea4f9a2482f5c6da4b7e60043360d
1 #!/usr/bin/python
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.
10 """
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')
18 return slaves