mirror of
https://github.com/jqlang/jq.git
synced 2026-10-12 02:16:58 +00:00
shtest: skip locale test if date lacks locale support (#3583)
This commit is contained in:
@@ -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