mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-22 02:38:31 +00:00
Tweak text_console_login match area
On Rawhide Cloud_Base boots, there's some SSH key and network information printed above the 'login:' prompt, so we can't expect empty space there. Also tweak console_login() to clear the screen after logging in, so the login prompt is cleared and doesn't confuse things on subsequent runs (like it did first time we tried this). And add a new user logged in needle, as it seems after we clear the screen the tilde appears in a slightly different position and the existing needle doesn't match. https://openqa.fedoraproject.org/tests/489003#step/_console_wait_login/7 Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
411f0d34e7
commit
e8802935f9
@ -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();
|
||||
}
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
16
needles/console/user_logged_in-hightilde-20191127.json
Normal file
16
needles/console/user_logged_in-hightilde-20191127.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 14,
|
||||
"xpos": 246,
|
||||
"ypos": 0,
|
||||
"width": 27,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"user_logged_in",
|
||||
"user_console"
|
||||
]
|
||||
}
|
BIN
needles/console/user_logged_in-hightilde-20191127.png
Normal file
BIN
needles/console/user_logged_in-hightilde-20191127.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 483 B |
Loading…
Reference in New Issue
Block a user