]> git.ipfire.org Git - thirdparty/systemd.git/commit
TEST-73-LOCALE: do not unnecessarily restart systemd-localed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Mar 2025 03:11:40 +0000 (12:11 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 13 Mar 2025 08:24:49 +0000 (09:24 +0100)
commitd8a353552a924592d41a1538ee95d516c9facf30
tree75d96597cb598d19266367fd15f974e192b12c88
parentfdab24bf6acc62d3011f9b5abdf834b4886642b2
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
test/units/TEST-73-LOCALE.sh