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
This commit is contained in:
linbing 2016-09-24 07:04:14 +08:00 committed by Saggi Mizrahi
parent 166e14ed9b
commit ae4e1d2b8b
1 changed files with 2 additions and 0 deletions

View File

@ -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}'