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

Unified Diff: client/bin/site_login.py

Issue 1213005: Add test to check stateful partition contents (Closed)
Patch Set: use site_ui_test, add a few files, rename wait_for_login, and remove trailing spaces Created 10 years, 9 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_ui_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/bin/site_login.py
diff --git a/client/bin/site_login.py b/client/bin/site_login.py
index 1fe1fc9e926ebe0a59e8e6a577332f32e6bf0417..970817d4826581c6fe546d403888dd59421015ef 100644
--- a/client/bin/site_login.py
+++ b/client/bin/site_login.py
@@ -3,7 +3,7 @@
# found in the LICENSE file.
import logging, os, utils, signal, time
-from autotest_lib.client.bin import chromeos_constants, test
+from autotest_lib.client.bin import chromeos_constants, site_cryptohome, test
from autotest_lib.client.common_lib import error, site_ui
@@ -72,6 +72,17 @@ def wait_for_browser(timeout=10):
return True
+def wait_for_cryptohome(timeout=10):
+ start_time = time.time()
+ while time.time() - start_time < timeout:
+ if site_cryptohome.is_mounted():
+ break;
+ time.sleep(1)
+ else:
+ return False
+ return True
+
+
def wait_for_screensaver(timeout=10, raise_error=True):
# Wait until the screensaver starts
start_time = time.time()
@@ -102,7 +113,7 @@ def wait_for_window_manager(timeout=20):
def nuke_login_manager():
nuke_process_by_name('session_manager')
wait_for_browser()
-
+
def nuke_process_by_name(name, with_prejudice=False):
pid = int(utils.system_output('pgrep -o ^%s$' % name))
« no previous file with comments | « no previous file | client/bin/site_ui_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698