Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: infra/scripts/legacy/site_config/config.py

Issue 1213433006: Fork runtest.py and everything it needs src-side for easier hacking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: runisolatedtest.py Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/scripts/legacy/scripts/slave/xvfb.py ('k') | infra/scripts/legacy/site_config/config_bootstrap.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/scripts/legacy/site_config/config.py
diff --git a/infra/scripts/legacy/site_config/config.py b/infra/scripts/legacy/site_config/config.py
new file mode 100644
index 0000000000000000000000000000000000000000..7c9ba9aaacb8955fccea92b93dd30aefe41df742
--- /dev/null
+++ b/infra/scripts/legacy/site_config/config.py
@@ -0,0 +1,32 @@
+# 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.
+
+"""Declares a number of site-dependent variables for use by scripts.
+"""
+
+import os
+from twisted.spread import banana
+
+# DatabaseSetup was moved. Import it for backward compatibility
+from common.chromium_utils import DatabaseSetup # pylint: disable=W0611
+from config_bootstrap import config_private # pylint: disable=W0403,W0611
+from config_bootstrap import Master # pylint: disable=W0403,W0611
+
+SITE_CONFIG_PATH = os.path.abspath(os.path.dirname(__file__))
+
+# By default, the banana's string size limit is 640kb, which is unsufficient
+# when passing diff's around. Raise it to 100megs. Do this here since the limit
+# is enforced on both the server and the client so both need to raise the
+# limit.
+banana.SIZE_LIMIT = 100 * 1024 * 1024
+
+
+def SiteConfigPath():
+ return SITE_CONFIG_PATH
+
+
+
+
+
+
« no previous file with comments | « infra/scripts/legacy/scripts/slave/xvfb.py ('k') | infra/scripts/legacy/site_config/config_bootstrap.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698