summaryrefslogtreecommitdiffstats
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-01-10 11:07:38 +0100
committerDarren Tucker <dtucker@dtucker.net>2022-01-10 11:07:38 +0100
commit3ef403f351e80a59b6f7e9d43cb82c181855483c (patch)
tree2bc37773c82c835d0cbd020f97c8c158a0abf78e /regress/test-exec.sh
parentupstream: Remove errant "set -x" left over from debugging. (diff)
downloadopenssh-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.sh6
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