shtest: skip locale test if date lacks locale support (#3583)
This commit is contained in:
1 parent
579e6f76cf
commit
dbcaa9d491
1 file changed
+2
@@ -711,6 +711,8 @@ $locales
|
||||
EOF
|
||||
if [ -z "$l" ]; then
|
||||
echo "WARNING: Not testing localization"
|
||||
elif [ "$(LC_ALL=C date +%a%b)" = "$(LC_ALL=$l date +%a%b)" ]; then
|
||||
echo "WARNING: Date does not produce locale-dependent output for $l, skipping localization test"
|
||||
else
|
||||
dt1=$(LC_ALL=$l date +'%a %d %b %Y at %H:%M:%S')
|
||||
dt2=$(LC_ALL=$l $JQ -nr 'now | strflocaltime("%a %d %b %Y at %H:%M:%S")')
|
||||
|
||||
Reference in new issue
Block a user