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

Unified Diff: client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py

Issue 3138009: Split logging_UserCrash out into two other files (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Clean up imports Created 10 years, 4 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_KernelCrash/logging_KernelCrash.py b/client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py
similarity index 87%
rename from client/site_tests/logging_KernelCrash/logging_KernelCrash.py
rename to client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py
index 86668ff94cf10e6fbc5c27dc204b2a6eb8693137..08e18b96813f7c2315b968285bc804c17d9b64c8 100644
--- a/client/site_tests/logging_KernelCrash/logging_KernelCrash.py
+++ b/client/site_tests/logging_UncleanShutdown/logging_UncleanShutdown.py
@@ -10,7 +10,7 @@ _CRASH_PATH = '/sbin/crash_reporter'
_PENDING_SHUTDOWN_PATH = '/var/lib/crash_reporter/pending_clean_shutdown'
_UNCLEAN_SHUTDOWN_MESSAGE = 'Last shutdown was not clean'
-class logging_KernelCrash(site_ui_test.UITest):
+class logging_UncleanShutdown(site_ui_test.UITest):
version = 1
auto_login = False
@@ -27,13 +27,13 @@ class logging_KernelCrash(site_ui_test.UITest):
raise error.TestFail(
'Unexpectedly detected kernel crash during boot')
- # Log in and out twice to make sure that doesn't cause
- # an unclean shutdown message.
- for i in range(2):
- self.login()
- time.sleep(5)
- self.logout()
- time.sleep(5)
+ # Log in and out twice to make sure that doesn't cause
+ # an unclean shutdown message.
+ for i in range(2):
+ self.login()
+ time.sleep(5)
+ self.logout()
+ time.sleep(5)
if log_reader.can_find(_UNCLEAN_SHUTDOWN_MESSAGE):
logging.info('Unexpected logs: ', log_reader.get_logs())
« no previous file with comments | « client/site_tests/logging_UncleanShutdown/control ('k') | client/site_tests/logging_UserCrash/logging_UserCrash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698