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

Unified Diff: scheduler/monitor_db.py

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month 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 | « scheduler/drone_utility.py ('k') | scheduler/monitor_db_cleanup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/monitor_db.py
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index 2d878bbf50dfd1d8b9619e4887d9add05eee7638..c5abed32a4896e7f6f8f748755a84c3b650c369f 100755
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -53,10 +53,16 @@ system error on the Autotest server. Full results may not be available. Sorry.
_db = None
_shutdown = False
_autoserv_path = os.path.join(drones.AUTOTEST_INSTALL_DIR, 'server', 'autoserv')
-_parser_path = os.path.join(drones.AUTOTEST_INSTALL_DIR, 'tko', 'parse')
_testing_mode = False
_drone_manager = None
+def _parser_path_default(install_dir):
+ return os.path.join(install_dir, 'tko', 'parse')
+_parser_path_func = utils.import_site_function(
+ __file__, 'autotest_lib.scheduler.site_monitor_db',
+ 'parser_path', _parser_path_default)
+_parser_path = _parser_path_func(drones.AUTOTEST_INSTALL_DIR)
+
def _get_pidfile_timeout_secs():
"""@returns How long to wait for autoserv to write pidfile."""
« no previous file with comments | « scheduler/drone_utility.py ('k') | scheduler/monitor_db_cleanup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698