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

Unified Diff: client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.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
Index: client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py
diff --git a/client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py b/client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py
index 79d88bce7ddb90715347b82c92fd96451644defb..c5a5070314eb6a35aa1f99ddc37ed8a7900ed810 100644
--- a/client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py
+++ b/client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py
@@ -3,16 +3,16 @@
# found in the LICENSE file.
import logging, os, time
-from autotest_lib.client.bin import site_log_reader, test
-from autotest_lib.client.common_lib import error, utils
-from autotest_lib.client.cros import ui_test
+from autotest_lib.client.bin import utils
+from autotest_lib.client.common_lib import error
+from autotest_lib.client.cros import cros_logging, cros_ui_test
_CRASH_PATH = '/sbin/crash_reporter'
_PENDING_SHUTDOWN_PATH = '/var/lib/crash_reporter/pending_clean_shutdown'
_UNCLEAN_SHUTDOWN_DETECTED_PATH = '/tmp/unclean-shutdown-detected'
_UNCLEAN_SHUTDOWN_MESSAGE = 'Last shutdown was not clean'
-class logging_UncleanShutdown(ui_test.UITest):
+class logging_UncleanShutdown(cros_ui_test.UITest):
version = 1
auto_login = False
@@ -22,7 +22,7 @@ class logging_UncleanShutdown(ui_test.UITest):
raise error.TestFail('pending shutdown file, %s, not found' %
_PENDING_SHUTDOWN_PATH)
- log_reader = site_log_reader.LogReader()
+ log_reader = cros_logging.LogReader()
log_reader.set_start_by_reboot(-1)
if log_reader.can_find(_UNCLEAN_SHUTDOWN_MESSAGE):
« no previous file with comments | « client/site_tests/logging_LogVolume/logging_LogVolume.py ('k') | client/site_tests/logging_UserCrash/logging_UserCrash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698