From 8f58652f5e113a410cfabae9b5ccc62a3e07b1a0 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 20 Jul 2024 11:34:51 +0100 Subject: [PATCH] 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 (cherry picked from commit 7b5c38a91def6cf236605010a0a93a1cd4c137e9) --- test/units/TEST-73-LOCALE.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- 2.25.1