Use console_loadkeys_us rather than manual load.
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:
parent
ab4a2989ac
commit
6b2b8bb183
3 changed files with 6 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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%"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue