[lit] Don't fail when printing test output with special chars
authorJoel E. Denny <jdenny-ornl@gmail.com>
Fri, 18 Oct 2019 16:53:45 +0000 (12:53 -0400)
committerJoel E. Denny <dennyje@ornl.gov>
Fri, 25 Oct 2019 22:13:13 +0000 (18:13 -0400)
commit27fdf8a29d1e0740c342d428fa48eda7b088ac8e
treec04816bd3493ae492c8a5b22ac03a77373c753b9
parent73a7a55c0ec976fecadd7a872d24d850f8cd793a
[lit] Don't fail when printing test output with special chars

This addresses a UnicodeEncodeError when using Python 3.6.5 in Windows
10.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D69207
llvm/utils/lit/lit/display.py
llvm/utils/lit/tests/Inputs/shtest-shell/stdout-encoding.txt [new file with mode: 0644]
llvm/utils/lit/tests/max-failures.py
llvm/utils/lit/tests/shtest-shell.py