diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-15 02:19:13 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-08-15 11:35:44 +0300 |
commit | 00bfbcbfa2a5c59f790962b3b1f7e1088fe08947 (patch) | |
tree | abfc2bfef5f7cdf10b8fdc734d3ebb95709d7f65 /run_project_tests.py | |
parent | 6c55fc5cb0f6f363d5221c9bd0c1fd1fc6f90f4a (diff) | |
download | meson-00bfbcbfa2a5c59f790962b3b1f7e1088fe08947.zip meson-00bfbcbfa2a5c59f790962b3b1f7e1088fe08947.tar.gz meson-00bfbcbfa2a5c59f790962b3b1f7e1088fe08947.tar.bz2 |
tests: make detecting broken compilers always run without tracebacks
Fixes regression in commit 75688240cfca7eed08c2754daa784c9bd1a70a73.
Even though this function is *currently* only invoked on Windows, these
environment variables may not actually exist -- and apparently don't in
at least the "UnusedMissingReturn / windows" test run, which... did not
get triggered by that commit, since it only edited the testsuite runner,
not any test cases. \o/
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index cc19568..7896ee5 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1008,7 +1008,7 @@ def has_broken_rustc() -> bool: def has_broken_compiler_combination() -> bool: # Rust and vs2017 do not work together. But only with 32 bits. - if os.environ['VisualStudioVersion'] == '15.0' and os.environ['Platform'] == 'x86': + if os.environ.get('VisualStudioVersion') == '15.0' and os.environ.get('Platform') == 'x86': return True # Clang-cl also fails with Rust. if shutil.which('cl') is None and shutil.which('clang-cl'): |