mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-22 10:48:30 +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:
parent
e7853a56a8
commit
068879a04a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user