spiegel-keyman/linux/keyman-config/tests
Eberhard Beilharz 189ee50e24
fix(linux): don't crash if kmp.json is missing keyboards section
Some keyboards seem to be missing the `keyboards` section in the
`kmp.json` file. This change prevents a crash and instead returns `None`
and thus we don't create a .ldml file and so onboard will show the
default keyboard instead. The alternative would be to create an empty
.ldml file, but that causes onboard to show a keyboard with all key caps
being empty.

Fixes: #14707
Fixes: KEYMAN-LINUX-8P
Test-bot: skip
2025-09-08 18:06:36 +02:00
..
bcp47tag_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
canonical_language_code_utils_tests.py fix(linux): normalize language tags from keyboard 2025-08-18 19:49:38 +02:00
custom_keyboards_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
dbus_util_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
dconf_util_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
get_kmp_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
gnome_keyboards_util_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
gsettings_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
handle_install_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
ibus_util_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
install_kmp_tests.py fix(linux): normalize language tags from keyboard 2025-08-18 19:49:38 +02:00
kvk2ldml_tests.py fix(linux): don't crash if kmp.json is missing keyboards section 2025-09-08 18:06:36 +02:00
lang_tags_map_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
package_install_completion_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00
python.env chore(linux): Add some unit tests for keyman_config 2020-06-17 09:19:19 +02:00
uninstall_kmp_tests.py chore(common): allow to run tests in virtual environment 2025-04-29 19:20:49 +02:00