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

Unified Diff: client/bin/site_job.py

Issue 5740004: Move site_chrome_test, site_logging, site_log_reader, site_crash_test into cros dir. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 12 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 | « no previous file | client/bin/site_log_reader.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/bin/site_job.py
diff --git a/client/bin/site_job.py b/client/bin/site_job.py
index 2cec72654d0f726eec8cd10b2f2010f61144956d..461ede580417c679bfd3ef4eb9f905b4493bbfae 100755
--- a/client/bin/site_job.py
+++ b/client/bin/site_job.py
@@ -3,18 +3,22 @@
# found in the LICENSE file.
import os
-
-from autotest_lib.client.bin import boottool, site_logging, utils
+from datetime import datetime
+from autotest_lib.client.bin import boottool, utils
from autotest_lib.client.bin.job import base_client_job
from autotest_lib.client.common_lib import error
-from datetime import datetime
+from autotest_lib.client.cros import cros_logging
+
LAST_BOOT_TAG = object()
class site_job(base_client_job):
+
+
def __init__(self, *args, **kwargs):
base_client_job.__init__(self, *args, **kwargs)
+
def _runtest(self, url, tag, args, dargs):
# this replaced base_client_job._runtest, which is called by
# base_client_job.runtest.group_func (see job.py)
@@ -25,8 +29,9 @@ class site_job(base_client_job):
self.last_error = detail
raise
+
def run_test(self, url, *args, **dargs):
- log_pauser = site_logging.LogRotationPauser()
+ log_pauser = cros_logging.LogRotationPauser()
passed = False
try:
log_pauser.begin()
« no previous file with comments | « no previous file | client/bin/site_log_reader.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698