]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix TEST-73-LOCALE on Debian
authorMichael Biebl <biebl@debian.org>
Sun, 22 Jan 2023 21:49:06 +0000 (22:49 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 23 Jan 2023 11:41:14 +0000 (11:41 +0000)
Fix incorrection assumption about the Debian patch being buggy and
actually making TEST-73-LOCALE fail on Debian.

```
 # localectl set-locale LANG=C.UTF-8
 # cat /etc/default/locale
 LANG=C.UTF-8
```

test/units/testsuite-73.sh

index a4fda36da06d0e03015037ab7f20d00cfab81e73..4eae0f646677df1074117caf063aa797d6939759 100755 (executable)
@@ -131,9 +131,7 @@ LC_CTYPE=$i"
 
         assert_rc 0 localectl set-locale "$i"
         if [[ -f /etc/default/locale ]]; then
-            # Debian/Ubuntu patch is buggy, and LC_CTYPE= still exists.
-            assert_eq "$(cat /etc/default/locale)" "LANG=$i
-LC_CTYPE=$i"
+            assert_eq "$(cat /etc/default/locale)" "LANG=$i"
         else
             assert_eq "$(cat /etc/locale.conf)" "LANG=$i"
         fi