Fix console keyboard layout in installedtest post_fail_hook

This should fix log collection when a French or Japanese test
fails before the test itself would have done this.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-12-13 16:29:53 -08:00
parent 666cac410a
commit 4629e5b740
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ sub post_fail_hook {
}
else {
$self->root_console(tty=>6);
# fix up keyboard layout, if we failed before the test did this
# itself; if it's already been done, should be safe, will just
# fail and carry on
console_loadkeys_us;
}
# We can't rely on tar being in minimal installs, but we also can't