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

Unified Diff: client/bin/site_login.py

Issue 3213006: [autotest] Ensure that we clear /tmp/uptime-login-prompt-ready before starting a new test (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | 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 2eff093ca8da9e62cc505ed643876506319ca7bc..9df2a54a9c7397ae521ab1c3920bc86fe480a8ee 100644
--- a/client/bin/site_login.py
+++ b/client/bin/site_login.py
@@ -291,12 +291,13 @@ def refresh_login_screen(timeout=_DEFAULT_TIMEOUT):
"""
if logged_in():
raise UnexpectedCondition('Already logged in')
+ wait_for_browser()
+ wait_for_login_prompt()
try:
os.unlink(chromeos_constants.LOGIN_PROMPT_READY_MAGIC_FILE)
except OSError, e:
if e.errno != errno.ENOENT:
raise e
- wait_for_browser()
nuke_process_by_name(chromeos_constants.BROWSER, with_prejudice=True)
wait_for_browser()
wait_for_login_prompt()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698