From 068879a04a7e6cb1f71cdbfd3c94d64dcd2f0520 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 21 Dec 2020 09:51:02 -0800 Subject: [PATCH] Check password_required needle in desktop_terminal ...nope, wait_screen_change wasn't enough. Let's just assert the needle. Not sure if the existing one will work, if not we'll add one. Signed-off-by: Adam Williamson --- tests/desktop_terminal.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/desktop_terminal.pm b/tests/desktop_terminal.pm index b9b69ce3..14f12017 100644 --- a/tests/desktop_terminal.pm +++ b/tests/desktop_terminal.pm @@ -11,8 +11,8 @@ sub run { wait_still_screen 5; # need to be root my $rootpass = get_var("ROOT_PASSWORD", "weakpassword"); - wait_screen_change { type_string "su\n", 20; }; - wait_still_screen 3; + type_string "su\n", 20; + assert_screen "console_password_required"; # can't use type_safely for now as current implementation relies # on screen change checks, and there is no screen change here type_string "$rootpass\n", 1;