]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add wrapper for "sort" to set LC_ALL=C.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 10 Jan 2022 10:07:38 +0000 (21:07 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 10 Jan 2022 10:07:38 +0000 (21:07 +1100)
Found by djm, this should make sorts stable and reduce test flakiness.

regress/test-exec.sh

index 645b532110b05396583933478759223aa22adadc..dfb5085b51de1acadfa19b2f0a801476ab95552d 100644 (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