mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
TEST-73-LOCALE: do not unnecessarily restart systemd-localed
It is not necessary to clear previous keymap assignment, as `localectl set-keymap` will anyway overwrite the previous assignment. This drops the unnecessary restart of systemd-localed in the loop. The mkosi test image contains about 500~700 keymaps. The test performance is greatly improved by reducing the number of restarts, especially when the test is running with sanitizers. On Fedora 41 with sanitizers, Before: 1/1 systemd:integration-tests / TEST-73-LOCALE OK 1157.50s After: 1/1 systemd:integration-tests / TEST-73-LOCALE OK 104.43s
This commit is contained in:
parent
fdab24bf6a
commit
d8a353552a
@ -209,11 +209,6 @@ testcase_vc_keymap() {
|
||||
assert_in "VC Keymap:" "$(localectl)"
|
||||
|
||||
for i in $(localectl list-keymaps); do
|
||||
# clear previous conversion from VC -> X11 keymap
|
||||
systemctl stop systemd-localed.service
|
||||
wait_vconsole_setup
|
||||
rm -f /etc/vconsole.conf /etc/X11/xorg.conf.d/00-keyboard.conf /etc/default/keyboard
|
||||
|
||||
# set VC keymap
|
||||
assert_rc 0 localectl set-keymap "$i"
|
||||
output=$(localectl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user