Skip to content
Myr

shtest: skip locale test if date lacks locale support (#3583)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by pavel kuliaka · committed by GitHub · parent 579e6f7 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • tests:+2 added−0 removed

1 file+2 added−0 removed

modified:tests/shtest+2 added
709 unmodified lines
710$locales711EOF712 if [ -z "$l" ]; then713 echo "WARNING: Not testing localization"714 elif [ "$(LC_ALL=C date +%a%b)" = "$(LC_ALL=$l date +%a%b)" ]; then715 echo "WARNING: Date does not produce locale-dependent output for $l, skipping localization test"716 else717 dt1=$(LC_ALL=$l date +'%a %d %b %Y at %H:%M:%S')718 dt2=$(LC_ALL=$l $JQ -nr 'now | strflocaltime("%a %d %b %Y at %H:%M:%S")')719 dt3=$(LC_ALL=$l date +'%a %d %b %Y at %H:%M:%S')
219 unmodified lines