]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: set locale to C.UTF-8 in tox.ini
authorKefu Chai <tchaikov@gmail.com>
Thu, 8 Dec 2022 06:42:42 +0000 (14:42 +0800)
committerAdam King <adking@redhat.com>
Fri, 9 Dec 2022 18:47:03 +0000 (13:47 -0500)
commit000c3a2270b79b6b18b6828bd71db3d7789f2e1b
tree67c192192a45fa5ce5b20819e6ed9b866dfd0ea7
parent404edcbc8930aedf33f8708b0068f44d12834482
qa: set locale to C.UTF-8 in tox.ini

as ansible is using UTF-8 encoded characters in the file names, so,
to avoid failures like:

  File "/home/jenkins-build/build/workspace/ceph-pull-requests/qa/.tox/py3/lib/python3.10/site-packages/pip/_internal/utils/unpacking.py", line 217, in untar_file
    with open(path, "wb") as destfp:
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 137-140: ordinal not in range(256)

we have to set a locale which is able to handle UTF-8.

see also https://github.com/ceph/teuthology/pull/1671

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit bc2b551e9fc94697aee42de34de03d0a2a819850)
qa/tox.ini