From 2c88b822cf5002845d08bd822169df07de716555 Mon Sep 17 00:00:00 2001 From: Sergey <6213510+sshnaidm@users.noreply.github.com> Date: Thu, 14 Jul 2022 11:35:47 +0300 Subject: [PATCH] Set localte in CI tests to en_US.UTF-8 (#450) Signed-off-by: Sagi Shnaidman --- ci/run_connection_test.sh | 5 +++++ ci/run_containers_tests.sh | 5 +++++ tests/integration/targets/connection_buildah/runme.sh | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/ci/run_connection_test.sh b/ci/run_connection_test.sh index 430a86f..510d894 100755 --- a/ci/run_connection_test.sh +++ b/ci/run_connection_test.sh @@ -2,6 +2,11 @@ set -o pipefail set -eux +# New requirement from ansible-core 2.14 +export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 +export LANGUAGE=en_US.UTF-8 + CON_TYPE="${1:-podman}" SUDO=${ROOT:+"sudo -E"} diff --git a/ci/run_containers_tests.sh b/ci/run_containers_tests.sh index 4976647..d9e4fd2 100755 --- a/ci/run_containers_tests.sh +++ b/ci/run_containers_tests.sh @@ -2,6 +2,11 @@ set -o pipefail set -ex +# New requirement from ansible-core 2.14 +export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 +export LANGUAGE=en_US.UTF-8 + [[ -z "$TEST2RUN" || ! -f "ci/playbooks/containers/${TEST2RUN}.yml" ]] && { echo "Please specify test to run, for example TEST2RUN=podman_container"; exit 1; diff --git a/tests/integration/targets/connection_buildah/runme.sh b/tests/integration/targets/connection_buildah/runme.sh index 60b915c..b7fbcff 100755 --- a/tests/integration/targets/connection_buildah/runme.sh +++ b/tests/integration/targets/connection_buildah/runme.sh @@ -2,6 +2,11 @@ set -o pipefail set -eux +# New requirement from ansible-core 2.14 +export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 +export LANGUAGE=en_US.UTF-8 + function run_ansible { ${SUDO:-} ${ANSIBLECMD:-ansible-playbook} ../connection/test_connection.yml -i "test_connection.inventory" \ -e target_hosts="buildah" \