diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-03-17 14:07:26 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-04-12 06:58:04 -0400 |
commit | 73fa3aad43f0dbda4625f1a57cbb25c8f410979c (patch) | |
tree | 64b4606e1bbcaeb20fa63e7e7d9722fe264f978f /run_project_tests.py | |
parent | 1bb0387e676bd3775d304ff260604d90cd59508e (diff) | |
download | meson-73fa3aad43f0dbda4625f1a57cbb25c8f410979c.zip meson-73fa3aad43f0dbda4625f1a57cbb25c8f410979c.tar.gz meson-73fa3aad43f0dbda4625f1a57cbb25c8f410979c.tar.bz2 |
python module: windows dll name for pypy needs special casing
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 893107a..b25aca6 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -651,7 +651,8 @@ def _run_test(test: TestDef, (returncode, stdo, stde) = run_configure(gen_args, env=test.env, catch_exception=True) try: logfile = Path(test_build_dir, 'meson-logs', 'meson-log.txt') - mesonlog = logfile.open(errors='ignore', encoding='utf-8').read() + with logfile.open(errors='ignore', encoding='utf-8') as fid: + mesonlog = fid.read() except Exception: mesonlog = no_meson_log_msg cicmds = run_ci_commands(mesonlog) |