From ae4e1d2b8bd5ca10ea3a3d3ea61e3c5d3719058b Mon Sep 17 00:00:00 2001 From: linbing Date: Sat, 24 Sep 2016 07:04:14 +0800 Subject: [PATCH] Set local for tox When tests are run it's important that we set the locale so that variouse logs and tool outputs are readable by the entire team regadless of host locale. * Force LANGUAGE=en_US in test runs * Force the value of LC_ALL to be en_US.UTF-8 Change-Id: I5cfbb72baab46f5d99e994c2c6075138e239e411 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 7da60f5b..0dbe2358 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,8 @@ setenv = VIRTUAL_ENV={envdir} OS_TEST_PATH=./karbor/tests/unit PYTHONWARNINGS=default::DeprecationWarning + LANGUAGE=en_US + LC_ALL=en_US.utf-8 deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}'