test: fix TEST-73-LOCALE on Debian
authorMichael Biebl <biebl@debian.org>
Sun, 22 Jan 2023 21:49:06 +0000 (22:49 +0100)
committerMichael Biebl <biebl@debian.org>
Wed, 25 Jan 2023 08:17:24 +0000 (08:17 +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
```

(cherry picked from commit a4bc35740a052d0c69269f44d81f350dd7930b69)

Gbp-Pq: Name test-fix-TEST-73-LOCALE-on-Debian.patch

test/units/testsuite-73.sh

index f9e2dce1bf1fcf9cbcb6f7b532f024787ece3a2a..1e493c079abc186925af1038e38c6683a4e36f05 100755 (executable)
@@ -118,9 +118,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