switch to autox.py and robustify login/logout code
This CL switches from using the autox binary to using autox.py. This includes backwards
incompatible changes to site_login.py, and I haven't had a chance to fix the affected callsites
yet.
I've also made the login/logout code a little more robust. Now it'll make sure that the login
manager is running under a NEW pid, that X is running, and that at a window is visible before
assuming we're ready to log in.
All of the wait loops have been refactored into wait_for(...), which spits out logging.info()
messages that could be parsed later to determine how long the operations are actually taking.
Perhaps this could make it into a different, non-login specific library soonish.
I'm out of the office for the next few days, but wanted to get this out there before the
trunk totally passed it by. I'll return on Wednesday to finish the job.
Review URL: http://codereview.chromium.org/1534001
diff --git a/client/bin/chromeos_constants.py b/client/bin/chromeos_constants.py
index 18d1f3b..a7c9e48 100644
--- a/client/bin/chromeos_constants.py
+++ b/client/bin/chromeos_constants.py
@@ -12,7 +12,7 @@
CRYPTOHOME_MOUNT_PT = USER_DATA_DIR+'/user'
BROWSER = 'chrome'
-
+SESSION_MANAGER = 'session_manager'
WINDOW_MANAGER = 'chromeos-wm'
LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in'
@@ -21,3 +21,8 @@
'/var/run/state/windowmanager/initial-chrome-window-mapped'
DISABLE_BROWSER_RESTART_MAGIC_FILE = '/tmp/disable_chrome_restart'
+
+CREDENTIALS = {
+ '$default': ['performance.test.account@gmail.com', 'perfsmurf'],
+ '$backdoor': ['chronos@gmail.com', 'chronos'],
+}