From: Luca Boccassi Date: Sat, 20 Jul 2024 10:34:51 +0000 (+0100) Subject: test: override blocking localed policy in TEST-73-LOCALE X-Git-Tag: v257-rc1~862 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=7b5c38a91def6cf236605010a0a93a1cd4c137e9;p=systemd%2F.git test: override blocking localed policy in TEST-73-LOCALE On Debian and derivatives writing calls to localed are blocked as other tools are used to change settings, override that policy for the tests --- diff --git a/test/units/TEST-73-LOCALE.sh b/test/units/TEST-73-LOCALE.sh index 18539b8eab..06c8c56745 100755 --- a/test/units/TEST-73-LOCALE.sh +++ b/test/units/TEST-73-LOCALE.sh @@ -657,6 +657,29 @@ testcase_locale_gen_leading_space() { # running on. export SYSTEMD_KBD_MODEL_MAP=/usr/lib/systemd/tests/testdata/test-keymap-util/kbd-model-map +# On Debian and derivatives writing calls to localed are blocked as other tools are used to change settings, +# override that policy +mkdir -p /etc/dbus-1/system.d/ +cat >/etc/dbus-1/system.d/systemd-localed-read-only.conf < + + + + + + + + + + + + + +EOF +trap 'rm -f /etc/dbus-1/system.d/systemd-localed-read-only.conf' EXIT +systemctl reload dbus.service + enable_debug run_testcases