summaryrefslogtreecommitdiff
path: root/chromium/net/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/PRESUBMIT.py')
-rw-r--r--chromium/net/PRESUBMIT.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/net/PRESUBMIT.py b/chromium/net/PRESUBMIT.py
new file mode 100644
index 00000000000..3a2f21323b6
--- /dev/null
+++ b/chromium/net/PRESUBMIT.py
@@ -0,0 +1,21 @@
+# 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.
+
+"""Chromium presubmit script for src/net.
+
+See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
+for more details on the presubmit API built into gcl.
+"""
+
+def GetPreferredTrySlaves(project, change):
+ slaves = [
+ 'linux_rel:sync_integration_tests',
+ 'mac_rel:sync_integration_tests',
+ 'win_rel:sync_integration_tests',
+ ]
+ # Changes that touch NSS files will likely need a corresponding OpenSSL edit.
+ # Conveniently, this one glob also matches _openssl.* changes too.
+ if any('nss' in f.LocalPath() for f in change.AffectedFiles()):
+ slaves.append('linux_redux')
+ return slaves