From 1c1da2590ce9d8b89283afa9991a8fe563cb14a5 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Wed, 27 Jun 2018 11:47:33 +0200 Subject: [PATCH] Add login into system. --- tests/upgrade_graph.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/upgrade_graph.pm b/tests/upgrade_graph.pm index 487e6cc6..7cc7a30b 100644 --- a/tests/upgrade_graph.pm +++ b/tests/upgrade_graph.pm @@ -16,10 +16,14 @@ sub run { # switch back to the graphics send_key "ctrl-alt-f1"; - - # DELETE ME, check only - script_run "echo \"I wish I did not see this.\""; + # login onto the system + assert_screen "graphical_login_input"; + my $password = get_var("USER_PASSWORD", "weakpassword"); + type_very_safely $password; + send_key "ret"; + + # handle bootloader, if requested; set longer timeout as sometimes # reboot here seems to take a long time if (get_var("GRUB_POSTINSTALL")) {