diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-01-10 11:07:38 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-01-10 11:07:38 +0100 |
commit | 3ef403f351e80a59b6f7e9d43cb82c181855483c (patch) | |
tree | 2bc37773c82c835d0cbd020f97c8c158a0abf78e /regress/test-exec.sh | |
parent | upstream: Remove errant "set -x" left over from debugging. (diff) | |
download | openssh-3ef403f351e80a59b6f7e9d43cb82c181855483c.tar.xz openssh-3ef403f351e80a59b6f7e9d43cb82c181855483c.zip |
Add wrapper for "sort" to set LC_ALL=C.
Found by djm, this should make sorts stable and reduce test flakiness.
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r-- | regress/test-exec.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |