From fc0698ca1cb5be15dc249358eb30ee20f0436f65 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 12 Nov 2020 11:25:52 -0800 Subject: [PATCH] desktop_login: tweak password typing so we wait after enter This makes it so the `wait_still_screen` that comes at the end of `type_very_safely` happens *after we hit enter*, not after we type the password but before we hit enter. I'm hoping this makes the 'set new password at login' more robust on aarch64, it seems to be failing often. Signed-off-by: Adam Williamson --- tests/desktop_login.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index 3613882c..ba88ddf8 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -87,11 +87,9 @@ sub login_user { if ($method eq "create") { # With users that do not have passwords, we need to make an extra round # of password typing. - type_very_safely $password; - send_key "ret"; + type_very_safely "$password\n"; } - type_very_safely $password; - send_key "ret"; + type_very_safely "$password\n"; check_desktop if ($args{checklogin}); wait_still_screen 5; }