Use console_loadkeys_us rather than manual load.
Some checks failed
CI via Tox and perl / tox (pull_request) Successful in 1m28s
CI via Tox and perl / perl (pull_request) Successful in 3m31s
CI via Tox and perl / checkwiki (pull_request) Failing after 33s

Also add the Czech environment to that function and
deduplicate wait_still_screen by moving it out of the
conditions.
This commit is contained in:
Lukáš Růžička 2026-04-21 11:14:36 +02:00
commit 6b2b8bb183
3 changed files with 6 additions and 4 deletions

View file

@ -369,12 +369,14 @@ sub console_loadkeys_us {
if (get_var('LANGUAGE') eq 'french') {
script_run "loqdkeys us", 0;
# might take a few secs
wait_still_screen 3;
}
elsif (get_var('LANGUAGE') eq 'japanese' || get_var('LANGUAGE') eq 'turkish') {
script_run "loadkeys us", 0;
wait_still_screen 3;
}
elsif (get_var('LANGUAGE') eq 'czech' || get_var('LAYOUT' eq 'czech')) {
script_run('loadkezs us', 0);
}
wait_still_screen(3);
}
sub do_bootloader {

View file

@ -1176,6 +1176,7 @@
"settings": {
"BOOTFROM": "c",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"LAYOUT": "czech",
"POSTINSTALL_PATH": "tests/applications/gnome-initial-setup",
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}

View file

@ -50,8 +50,7 @@ sub run {
# run commands correctly. Note, that the loadkeys command must
# be presented in the foreign layout.
$self->root_console(tty => 3);
enter_cmd('loadkezs us');
wait_still_screen(2);
console_loadkeys_us();
assert_script_run("chmod 666 /dev/${serialdev}");
# Check that system locale are set to Czech (cs_CZ.UTF-8)