From: Darren Tucker Date: Mon, 10 Jan 2022 10:07:38 +0000 (+1100) Subject: Add wrapper for "sort" to set LC_ALL=C. X-Git-Tag: V_8_9_P1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef403f351e80a59b6f7e9d43cb82c181855483c;p=thirdparty%2Fopenssh-portable.git Add wrapper for "sort" to set LC_ALL=C. Found by djm, this should make sorts stable and reduce test flakiness. --- diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 645b53211..dfb5085b5 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -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