You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test case (put this in one of the ubuntu 24.04 tests):
function test_post_boot_grub() {
# Wait a while for EUFI or BIOS to pass
# We could skip having this function, but it's nice to have
# So we have the opportunity to click that stupid dialog
qt_wait_for_seconds 10
# Wait for the grub menu
qt_wait_for_text "$FUNCNAME" "$text_console_gnu_grub" 10 5
qt_send_key "e"
qt_wait_for_seconds 1
qt_send_key "down"
qt_wait_for_seconds 1
qt_send_key "down"
qt_wait_for_seconds 1
qt_send_key "down"
qt_wait_for_seconds 1
qt_send_key "end"
qt_wait_for_seconds 1
qt_send_string " console=ttyS0,115200"
qt_screenshot_ppm "$FUNCNAME"
qt_send_key "f10"
}
What should happen:
"e" - begin editing the boot config
"down"x3 - move down three lines
"end" - move to end of line
insert the string
"f10" - boot with edited command line
What actually happens:
"e" works and we enter the editor.
"down", "end" are ignored.
The extra command lines are typed in the wrong place.
"f10" is ignored, leaving the system like this:
The "console=..." should be at the end of the line beginning with "linux".
The text was updated successfully, but these errors were encountered:
According to https://en.wikibooks.org/wiki/QEMU/Monitor#sendkey_keys these are the correct key names so I don't know why they don't work. Performing these steps manually through the viewer does work (F10 seems to be grabbed by the viewer, but ctrl-x works instead).
Have you tried qt_send_key_combo? Which does no translation/mapping? It's a bit horrid, but there's two functions in Quicktest for this reason. The qt_send_key_combo lets you send the raw ret, escctrl-alt-f1 combinations that Qemu recognises. Whereas the qt_send_key function does the whole mapping of # to shift-f3 or whatever it is for your keyboard layout.
In order to avoid confusion, I would make only qt_send_string handle remapping, then make qt_send_key do what qt_send_key_combo does, and remove the latter. Finally qt_send_key should display an error for invalid keys instead of silently doing nothing.
Test case (put this in one of the ubuntu 24.04 tests):
What should happen:
What actually happens:
The "console=..." should be at the end of the line beginning with "linux".
The text was updated successfully, but these errors were encountered: