diff --git a/lib/utils.pm b/lib/utils.pm index c7f8eda6..1e4c5c42 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -237,6 +237,9 @@ sub console_login { assert_screen [$good, 'console_password_required'], 30; # on a live image, just the user name will be enough if (match_has_tag $good) { + # clear the screen (so the remaining login prompt text doesn't + # confuse subsequent runs of this) + type_string "clear\n"; _console_login_finish(); return; } @@ -262,6 +265,9 @@ sub console_login { $timeout = 90 if (get_var("ARCH") eq "aarch64"); assert_screen($good, $timeout); } + # clear the screen (so the remaining login prompt text doesn't + # confuse subsequent runs of this) + type_string "clear\n"; } _console_login_finish(); } diff --git a/needles/console/text_console_login.json b/needles/console/text_console_login.json index 8510f26d..cc2b9908 100644 --- a/needles/console/text_console_login.json +++ b/needles/console/text_console_login.json @@ -1,11 +1,11 @@ { "area": [ { - "height": 30, + "height": 15, "type": "match", - "width": 56, + "width": 61, "xpos": 72, - "ypos": 49 + "ypos": 64 } ], "properties": [], @@ -15,4 +15,4 @@ "ENV-DISTRI-fedora", "ENV-FLAVOR-develop" ] -} +} \ No newline at end of file diff --git a/needles/console/user_logged_in-hightilde-20191127.json b/needles/console/user_logged_in-hightilde-20191127.json new file mode 100644 index 00000000..160b3e75 --- /dev/null +++ b/needles/console/user_logged_in-hightilde-20191127.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 14, + "xpos": 246, + "ypos": 0, + "width": 27, + "type": "match" + } + ], + "properties": [], + "tags": [ + "user_logged_in", + "user_console" + ] +} \ No newline at end of file diff --git a/needles/console/user_logged_in-hightilde-20191127.png b/needles/console/user_logged_in-hightilde-20191127.png new file mode 100644 index 00000000..f58a5109 Binary files /dev/null and b/needles/console/user_logged_in-hightilde-20191127.png differ