mirror of
https://github.com/systemd/systemd.git
synced 2025-01-28 21:47:38 +03:00
test: update TEST-73-LOCALE to define several locale settings in initial PID1 environment
This commit is contained in:
parent
6c2d70ce9f
commit
b1afa5a67b
@ -92,6 +92,19 @@ test_locale() {
|
||||
return
|
||||
fi
|
||||
|
||||
# start with a known default environment and make sure to also give a
|
||||
# default value to LC_CTYPE= since we're about to also set/unset it. We
|
||||
# also reload PID1 configuration to make sure that PID1 environment itself
|
||||
# is updated as it's not always been the case.
|
||||
assert_rc 0 localectl set-locale "LANG=en_US.UTF-8" "LC_CTYPE=C"
|
||||
systemctl daemon-reload
|
||||
output=$(localectl)
|
||||
assert_in "System Locale: LANG=en_US.UTF-8" "$output"
|
||||
assert_in "LC_CTYPE=C" "$output"
|
||||
output=$(systemctl show-environment)
|
||||
assert_in "LANG=en_US.UTF-8" "$output"
|
||||
assert_in "LC_CTYPE=C" "$output"
|
||||
|
||||
# warn when kernel command line has locale settings
|
||||
output=$(SYSTEMD_PROC_CMDLINE="locale.LANG=C.UTF-8 locale.LC_CTYPE=ja_JP.UTF-8" localectl 2>&1)
|
||||
assert_in "Warning:" "$output"
|
||||
|
Loading…
x
Reference in New Issue
Block a user