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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-12-21 09:51:02 -08:00
parent e7853a56a8
commit 068879a04a

View File

@ -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;