Add wrapper for "sort" to set LC_ALL=C.

Found by djm, this should make sorts stable and reduce test flakiness.
This commit is contained in:
Darren Tucker 2022-01-10 21:07:38 +11:00
parent bd69e29f57
commit 3ef403f351
1 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,12 @@ if test "x${EGREP}" != "x"; then
}
fi
# Force sort to have stable output.
sort()
{
env LC_ALL=C sort "$@"
}
SRC=`dirname ${SCRIPT}`
# defaults