The tests should run always the same, regardless of the user's language
settings. Set LANG=C and LC_ALL=C and unset LANGUAGE. If some part wants
to test a different language, it would set it explicitly. They anyway
wouldn't want to depend on something from the user's environment.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
#!/bin/bash
+unset LANGUAGE
+export LANG=C
+export LC_ALL=C
+
GREEN=""
YELLOW=""
RED=""
msg_warn "Ignore feature file \"$file\""
fi
done
-_HAVE_OPTS=( $(printf '%s\n' "${_HAVE_OPTS[@]}" | LANG=C sort) )
+_HAVE_OPTS=( $(printf '%s\n' "${_HAVE_OPTS[@]}" | sort) )
for KEY in $(compgen -v | grep '^NFT_TEST_HAVE_' | sort) ; do
if ! array_contains "${KEY#NFT_TEST_HAVE_}" "${_HAVE_OPTS[@]}" ; then
done
find_tests() {
- find "$1" -type f -executable | LANG=C sort
+ find "$1" -type f -executable | sort
}
if [ "${#TESTS[@]}" -eq 0 ] ; then