diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-23 01:37:23 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-23 01:40:20 +0300 |
commit | 824650411eacd8b0e64036705859164112bf51d3 (patch) | |
tree | 096beff9dc95fe79c9dd0f92f1a890ccaa6ae5c6 /run_project_tests.py | |
parent | c7e2549e59f690e35895a0a0fcd7ca3e6edaae31 (diff) | |
download | meson-824650411eacd8b0e64036705859164112bf51d3.zip meson-824650411eacd8b0e64036705859164112bf51d3.tar.gz meson-824650411eacd8b0e64036705859164112bf51d3.tar.bz2 |
Final encoding fix.
I sincerely hope sufficient amounts of goats have now been sacrificed
at the altar of Debian Locales so things will actually work and I
can get to sleep.
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 8b7883b..8c02a9e 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -701,7 +701,10 @@ if __name__ == '__main__': if failing_tests > 0: print('\nMesonlogs of failing tests\n') for l in failing_logs: - print(l, '\n') + try: + print(l, '\n') + except UnicodeError: + print(l.encode('ascii', errors='replace').decode(), '\n') for name, dirs, skip in all_tests: dirs = (os.path.basename(x) for x in dirs) for k, g in itertools.groupby(dirs, key=lambda x: x.split()[0]): |