1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 15:23:08 +00:00

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; wait_still_screen 5;
# need to be root # need to be root
my $rootpass = get_var("ROOT_PASSWORD", "weakpassword"); my $rootpass = get_var("ROOT_PASSWORD", "weakpassword");
wait_screen_change { type_string "su\n", 20; }; type_string "su\n", 20;
wait_still_screen 3; assert_screen "console_password_required";
# can't use type_safely for now as current implementation relies # can't use type_safely for now as current implementation relies
# on screen change checks, and there is no screen change here # on screen change checks, and there is no screen change here
type_string "$rootpass\n", 1; type_string "$rootpass\n", 1;